- void invalidate_pixel_data()
- {
- needs_update = true;
- }
-
- const unsigned char *get_pixel_data() const
- {
- return pixel_data;
- }
-
- void set_pitch(unsigned pitch) {
- assert(!finalized);
- this->pitch = pitch;
- }
-
- unsigned get_pitch() {
- return pitch;
- }
-
-private:
- ImageFormat image_format;
- GLenum format;
- GLuint pbo, texture_num;
- bool needs_update, finalized;
- int use_srgb_texture_format, needs_mipmaps;
- unsigned width, height, pitch, bytes_per_pixel;
- const unsigned char *pixel_data;
+ virtual unsigned get_width() const = 0;
+ virtual unsigned get_height() const = 0;
+ virtual Colorspace get_color_space() const = 0;
+ virtual GammaCurve get_gamma_curve() const = 0;