projects
/
opengl.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Update gitattributes
[opengl.git]
/
image.hpp
diff --git
a/image.hpp
b/image.hpp
index caa951c4974e4b26187f2306dcd5b562d90a495b..f87fd98a7370a7b3fd546ec7c9760cd8a0008eb9 100644
(file)
--- a/
image.hpp
+++ b/
image.hpp
@@
-11,6
+11,7
@@
class Image {
public:
Image(const std::string &path);
class Image {
public:
Image(const std::string &path);
+ Image(const unsigned char *data, size_t length, const char *formatHint);
~Image();
unsigned char *data() const;
GLfloat width() const;
~Image();
unsigned char *data() const;
GLfloat width() const;
@@
-20,12
+21,14
@@
class Image {
GLenum type() const;
private:
#ifdef __APPLE__
GLenum type() const;
private:
#ifdef __APPLE__
+ void initWithImageRef(CGImageRef ref);
CFDataRef dataRef;
CGBitmapInfo info;
CGImageAlphaInfo alphaInfo;
CGColorSpaceRef colorSpace;
GLfloat _width, _height;
size_t bitsPerComponent;
CFDataRef dataRef;
CGBitmapInfo info;
CGImageAlphaInfo alphaInfo;
CGColorSpaceRef colorSpace;
GLfloat _width, _height;
size_t bitsPerComponent;
+ bool usesFloat() const;
#endif
};
#endif
};