55 lines
449 B
C
55 lines
449 B
C
#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;
|
|
|
|
|
|
|