projects
/
opengl.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Bones and skeletal animation
[opengl.git]
/
image.hpp
diff --git
a/image.hpp
b/image.hpp
index b6d79201bffddcca414605ef7d11ef1ff6104146..caa951c4974e4b26187f2306dcd5b562d90a495b 100644
(file)
--- a/
image.hpp
+++ b/
image.hpp
@@
-1,3
+1,6
@@
+#ifndef IMAGE_HPP
+#define IMAGE_HPP
+
#include <iostream>
#include <fstream>
#ifdef __APPLE__
#include <iostream>
#include <fstream>
#ifdef __APPLE__
@@
-9,12
+12,21
@@
class Image {
public:
Image(const std::string &path);
~Image();
public:
Image(const std::string &path);
~Image();
- unsigned char *data();
+ unsigned char *data()
const
;
GLfloat width() const;
GLfloat height() const;
GLfloat width() const;
GLfloat height() const;
+ GLenum format() const;
+ GLint internalFormat() const;
+ GLenum type() const;
private:
#ifdef __APPLE__
CFDataRef dataRef;
private:
#ifdef __APPLE__
CFDataRef dataRef;
+ CGBitmapInfo info;
+ CGImageAlphaInfo alphaInfo;
+ CGColorSpaceRef colorSpace;
GLfloat _width, _height;
GLfloat _width, _height;
+ size_t bitsPerComponent;
#endif
};
#endif
};
+
+#endif