OPENGL: Add support for shaders with GL contexts.
This commit is contained in:
parent
19abd8ccbb
commit
fee1aa5502
9 changed files with 360 additions and 56 deletions
|
@ -76,6 +76,12 @@ typedef float GLclampf; /* single precision float in [0,1] */
|
|||
typedef double GLdouble; /* double precision float */
|
||||
typedef double GLclampd; /* double precision float in [0,1] */
|
||||
typedef char GLchar;
|
||||
typedef GLchar GLcharARB;
|
||||
#if defined(__APPLE__) || defined(MACOSX)
|
||||
typedef void *GLhandleARB;
|
||||
#else
|
||||
typedef uint GLhandleARB;
|
||||
#endif
|
||||
|
||||
/*
|
||||
* Constants
|
||||
|
@ -223,13 +229,20 @@ typedef char GLchar;
|
|||
|
||||
/* Shaders */
|
||||
#define GL_FRAGMENT_SHADER 0x8B30
|
||||
#define GL_FRAGMENT_SHADER_ARB 0x8B30
|
||||
|
||||
#define GL_VERTEX_SHADER 0x8B31
|
||||
#define GL_VERTEX_SHADER_ARB 0x8B31
|
||||
|
||||
/* Programs */
|
||||
#define GL_COMPILE_STATUS 0x8B81
|
||||
#define GL_LINK_STATUS 0x8B82
|
||||
#define GL_INFO_LOG_LENGTH 0x8B84
|
||||
|
||||
#define GL_OBJECT_COMPILE_STATUS_ARB 0x8B81
|
||||
#define GL_OBJECT_LINK_STATUS_ARB 0x8B82
|
||||
#define GL_OBJECT_INFO_LOG_LENGTH_ARB 0x8B84
|
||||
|
||||
/* Textures */
|
||||
#define GL_TEXTURE0 0x84C0
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue