Initial commit
This commit is contained in:
54
application/demos/example.opengl/engine/uniform.h
Normal file
54
application/demos/example.opengl/engine/uniform.h
Normal file
@@ -0,0 +1,54 @@
|
||||
#ifndef _uniform
|
||||
|
||||
#define _uniform
|
||||
|
||||
|
||||
// Macros
|
||||
|
||||
#define GL_GLEXT_PROTOTYPES
|
||||
|
||||
|
||||
|
||||
|
||||
#include "stdlib.h"
|
||||
|
||||
extern char * __ClassNames[];
|
||||
|
||||
|
||||
// Includes
|
||||
|
||||
#include <GL/glx.h>
|
||||
|
||||
#include <GL/gl.h>
|
||||
|
||||
#include <GL/glext.h>
|
||||
|
||||
|
||||
typedef struct uniform{
|
||||
|
||||
char name[64];
|
||||
|
||||
GLint index;
|
||||
|
||||
GLint location;
|
||||
|
||||
GLint offset;
|
||||
|
||||
GLint size;
|
||||
|
||||
GLenum type;
|
||||
|
||||
|
||||
} uniform;
|
||||
|
||||
uniform uniform_new( );
|
||||
|
||||
uniform * uniform_newPointer( );
|
||||
|
||||
#endif
|
||||
|
||||
|
||||
typedef struct uniform uniform;
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user