diff options
author | Johannes Schickel | 2016-01-02 14:09:41 +0100 |
---|---|---|
committer | Johannes Schickel | 2016-03-16 20:29:26 +0100 |
commit | e66e9e44d358b0cc90d128c31e695a8ace4177fa (patch) | |
tree | 0833ca6a0c8956ba7c8ec01eb0d64c19aa6ec9b4 /backends/graphics/opengl/opengl-defs.h | |
parent | de3846923c9a00ff6a8563e33858e12a72bfebda (diff) | |
download | scummvm-rg350-e66e9e44d358b0cc90d128c31e695a8ace4177fa.tar.gz scummvm-rg350-e66e9e44d358b0cc90d128c31e695a8ace4177fa.tar.bz2 scummvm-rg350-e66e9e44d358b0cc90d128c31e695a8ace4177fa.zip |
OPENGL: Accelerate palette lookups with shaders.
This currently is limited to 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 4de73d3476..733fc2933c 100644 --- a/backends/graphics/opengl/opengl-defs.h +++ b/backends/graphics/opengl/opengl-defs.h @@ -183,6 +183,9 @@ typedef GLhandleARB GLshader; #define GL_BGR 0x80E0 #define GL_BGRA 0x80E1 +#define GL_RED 0x1903 +#define GL_R8 0x8229 + /* PixelStoreParameter */ #define GL_UNPACK_ALIGNMENT 0x0CF5 #define GL_PACK_ALIGNMENT 0x0D05 @@ -242,8 +245,18 @@ typedef GLhandleARB GLshader; #define GL_COMPILE_STATUS 0x8B81 #define GL_LINK_STATUS 0x8B82 #define GL_INFO_LOG_LENGTH 0x8B84 +#define GL_CURRENT_PROGRAM 0x8B8D /* Textures */ #define GL_TEXTURE0 0x84C0 +#define GL_TEXTURE1 0x84C1 + +/* GetPName */ +#define GL_VIEWPORT 0x0BA2 +#define GL_FRAMEBUFFER_BINDING 0x8CA6 + +/* Framebuffer objects */ +#define GL_COLOR_ATTACHMENT0 0x8CE0 +#define GL_FRAMEBUFFER 0x8D40 #endif |