X-Git-Url: https://git.lukelau.me/?p=opengl.git;a=blobdiff_plain;f=image.hpp;fp=image.hpp;h=caa951c4974e4b26187f2306dcd5b562d90a495b;hp=41b45ba3ac01ade461d54741c7e997560fcedcb6;hb=0291188124d08368ce28b308482604218bd75393;hpb=d80972d96e5fcd444657f937ab2700039efa83d2 diff --git a/image.hpp b/image.hpp index 41b45ba..caa951c 100644 --- a/image.hpp +++ b/image.hpp @@ -15,7 +15,9 @@ class Image { unsigned char *data() const; GLfloat width() const; GLfloat height() const; - GLuint format() const; + GLenum format() const; + GLint internalFormat() const; + GLenum type() const; private: #ifdef __APPLE__ CFDataRef dataRef; @@ -23,6 +25,7 @@ class Image { CGImageAlphaInfo alphaInfo; CGColorSpaceRef colorSpace; GLfloat _width, _height; + size_t bitsPerComponent; #endif };