26 lines
239 B
C
26 lines
239 B
C
|
|
|
||
|
|
|
||
|
|
#define GL_GLEXT_PROTOTYPES
|
||
|
|
|
||
|
|
#include <GL/glext.h>
|
||
|
|
|
||
|
|
#include <GL/gl.h> // GL 1.1 functions
|
||
|
|
|
||
|
|
#include <GL/glx.h>
|
||
|
|
|
||
|
|
#include "vector2.h"
|
||
|
|
|
||
|
|
|
||
|
|
class texture2D{
|
||
|
|
|
||
|
|
GLubyte * data;
|
||
|
|
|
||
|
|
int width;
|
||
|
|
|
||
|
|
int height;
|
||
|
|
|
||
|
|
int hasAlpha;
|
||
|
|
|
||
|
|
vector2 * offset;
|
||
|
|
|
||
|
|
}
|