else if(w!=width)
throw incompatible_data("Texture1D::image");
- image(0, img.get_data());
+ image(0, img.get_pixels());
}
unsigned Texture1D::get_n_levels() const
PixelStore pstore = PixelStore::from_image(img);
BindRestore _bind_ps(pstore);
- image(0, from_buffer ? 0 : img.get_data());
+ image(0, from_buffer ? 0 : img.get_pixels());
}
unsigned Texture2D::get_n_levels() const
}
else if(phase==2)
{
- const char *data = reinterpret_cast<const char *>(image.get_data());
+ const char *data = reinterpret_cast<const char *>(image.get_pixels());
copy(data, data+n_bytes, mapped_address);
}
else if(phase==3)
PixelStore pstore = PixelStore::from_image(img);
BindRestore _bind_ps(pstore);
- layer_image(level, z, img.get_data());
+ layer_image(level, z, img.get_pixels());
}
PixelStore pstore = PixelStore::from_image(img);
BindRestore _bind_ps(pstore);
- image(0, img.get_data());
+ image(0, img.get_pixels());
}
unsigned Texture3D::get_n_levels() const
PixelStore pstore = PixelStore::from_image(img);
BindRestore _bind_ps(pstore);
- image(face, 0, img.get_data());
+ image(face, 0, img.get_pixels());
}
void TextureCube::image(TextureCubeFace face, const Graphics::Image &img, bool)
PixelStore pstore = PixelStore::from_image(img);
BindRestore _bind_ps(pstore);
- const char *cdata = reinterpret_cast<const char *>(img.get_data());
+ const char *pixels = reinterpret_cast<const char *>(img.get_pixels());
unsigned face_size = img.get_stride()*size;
for(unsigned i=0; i<6; ++i)
- image(enumerate_faces(i), 0, cdata+i*face_size);
+ image(enumerate_faces(i), 0, pixels+i*face_size);
}
unsigned TextureCube::get_n_levels() const