diff options
author | Andrei Karas <akaras@inbox.ru> | 2012-10-01 17:51:43 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2012-10-01 17:51:43 +0300 |
commit | c195c960fc2ce7a5a211c26310ae98bfe39ab777 (patch) | |
tree | b958a2181f84ca0de25bdd25d3585ae2b919fc25 /src/mgl.h | |
parent | 5adcad73b15aafa56ef77c794bf7ebfeff28049b (diff) | |
download | manaverse-c195c960fc2ce7a5a211c26310ae98bfe39ab777.tar.gz manaverse-c195c960fc2ce7a5a211c26310ae98bfe39ab777.tar.bz2 manaverse-c195c960fc2ce7a5a211c26310ae98bfe39ab777.tar.xz manaverse-c195c960fc2ce7a5a211c26310ae98bfe39ab777.zip |
Add OpenGL GL_ARB_sampler_objects extension binding.
Diffstat (limited to 'src/mgl.h')
-rw-r--r-- | src/mgl.h | 11 |
1 files changed, 11 insertions, 0 deletions
@@ -51,6 +51,13 @@ typedef void (APIENTRY *glDeleteFramebuffers_t) (GLsizei, const GLuint *); typedef void (APIENTRY *glDeleteRenderbuffers_t) (GLsizei, const GLuint *); typedef const GLubyte *(APIENTRY *glGetStringi_t) (GLenum, GLuint); +typedef void (APIENTRY *glGenSamplers_t) (GLsizei count, GLuint *samplers); +typedef void (APIENTRY *glDeleteSamplers_t) + (GLsizei count, const GLuint * samplers); +typedef void (APIENTRY *glBindSampler_t) (GLuint unit, GLuint sampler); +typedef void (APIENTRY *glSamplerParameteri_t) + (GLuint sampler, GLenum pname, GLint param); + defNameE(glGenRenderbuffers); defNameE(glBindRenderbuffer); defNameE(glRenderbufferStorage); @@ -61,6 +68,10 @@ defNameE(glFramebufferRenderbuffer); defNameE(glDeleteFramebuffers); defNameE(glDeleteRenderbuffers); defNameE(glGetStringi); +defNameE(glGenSamplers); +defNameE(glDeleteSamplers); +defNameE(glBindSampler); +defNameE(glSamplerParameteri); #ifdef WIN32 typedef const char* (APIENTRY * wglGetExtensionsString_t) (HDC hdc); |