X-Git-Url: https://git.lukelau.me/?p=opengl.git;a=blobdiff_plain;f=image.hpp;h=f87fd98a7370a7b3fd546ec7c9760cd8a0008eb9;hp=6864553c316b702efb124e375f0efa586e5a956e;hb=437aa7144a4aab438689841f3b0a7694d6b50c8e;hpb=d381f617bef400fc157edf782008cafb018ed594 diff --git a/image.hpp b/image.hpp index 6864553..f87fd98 100644 --- a/image.hpp +++ b/image.hpp @@ -11,7 +11,7 @@ class Image { public: Image(const std::string &path); - Image(const unsigned char *data, size_t length); + Image(const unsigned char *data, size_t length, const char *formatHint); ~Image(); unsigned char *data() const; GLfloat width() const; @@ -28,6 +28,7 @@ class Image { CGColorSpaceRef colorSpace; GLfloat _width, _height; size_t bitsPerComponent; + bool usesFloat() const; #endif };