+void TextureCube::image(unsigned level, const void *data)
+{
+ const char *pixels = static_cast<const char *>(data);
+ unsigned face_size = size*size*get_pixel_size(storage_fmt);
+ for(unsigned i=0; i<6; ++i)
+ image(static_cast<TextureCubeFace>(i), level, pixels+i*face_size);
+}
+