diff options
author | Johannes Schickel | 2015-12-20 09:30:11 +0100 |
---|---|---|
committer | Johannes Schickel | 2016-03-16 20:29:25 +0100 |
commit | fee1aa550203c3f46ff19afbe19a7baa4771a5cd (patch) | |
tree | 86f44f6b8f838f196eb2db5e7e824353c47c7c48 /backends/graphics/opengl/opengl-defs.h | |
parent | 19abd8ccbba339c2ea9691ef017a447b7c47701e (diff) | |
download | scummvm-rg350-fee1aa550203c3f46ff19afbe19a7baa4771a5cd.tar.gz scummvm-rg350-fee1aa550203c3f46ff19afbe19a7baa4771a5cd.tar.bz2 scummvm-rg350-fee1aa550203c3f46ff19afbe19a7baa4771a5cd.zip |
OPENGL: Add support for shaders with GL contexts.
Diffstat (limited to 'backends/graphics/opengl/opengl-defs.h')
-rw-r--r-- | backends/graphics/opengl/opengl-defs.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/backends/graphics/opengl/opengl-defs.h b/backends/graphics/opengl/opengl-defs.h index fe79caadd4..edcf334a0b 100644 --- a/backends/graphics/opengl/opengl-defs.h +++ b/backends/graphics/opengl/opengl-defs.h @@ -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 |