projects
/
opengl.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Fix refelctivity + refraction
[opengl.git]
/
image.hpp
1
#include <iostream>
2
#include <fstream>
3
#ifdef __APPLE__
4
#include <CoreGraphics/CoreGraphics.h>
5
#include <GL/glew.h>
6
#endif
7
8
class Image {
9
public:
10
Image(const std::string &path);
11
~Image();
12
unsigned char *data();
13
GLfloat width() const;
14
GLfloat height() const;
15
private:
16
#ifdef __APPLE__
17
CFDataRef dataRef;
18
GLfloat _width, _height;
19
#endif
20
};