Initial commit
This commit is contained in:
54
application/demos/example.opengl/engine/texture2D.h
Normal file
54
application/demos/example.opengl/engine/texture2D.h
Normal file
@@ -0,0 +1,54 @@
|
||||
#ifndef _texture2D
|
||||
|
||||
#define _texture2D
|
||||
|
||||
|
||||
// Macros
|
||||
|
||||
#define GL_GLEXT_PROTOTYPES
|
||||
|
||||
|
||||
|
||||
|
||||
#include "stdlib.h"
|
||||
|
||||
extern char * __ClassNames[];
|
||||
|
||||
|
||||
// Includes
|
||||
|
||||
#include "vector2.h"
|
||||
|
||||
#include <GL/glx.h>
|
||||
|
||||
#include <GL/gl.h>
|
||||
|
||||
#include <GL/glext.h>
|
||||
|
||||
|
||||
typedef struct texture2D{
|
||||
|
||||
GLubyte * data;
|
||||
|
||||
int width;
|
||||
|
||||
int height;
|
||||
|
||||
int hasAlpha;
|
||||
|
||||
vector2 * offset;
|
||||
|
||||
|
||||
} texture2D;
|
||||
|
||||
texture2D texture2D_new( );
|
||||
|
||||
texture2D * texture2D_newPointer( );
|
||||
|
||||
#endif
|
||||
|
||||
|
||||
typedef struct texture2D texture2D;
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user