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