diff options
author | Andrei Karas <akaras@inbox.ru> | 2014-08-10 01:28:29 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2014-08-10 01:29:27 +0300 |
commit | df56c8f79f51cf3ea5118b2e8b82930cd71c2679 (patch) | |
tree | 9f3157b141adf64fb215e8b4307da772580281db /src/render/mgl.h | |
parent | 98d8765769d809b060721bb071ca56887011a6b8 (diff) | |
download | plus-df56c8f79f51cf3ea5118b2e8b82930cd71c2679.tar.gz plus-df56c8f79f51cf3ea5118b2e8b82930cd71c2679.tar.bz2 plus-df56c8f79f51cf3ea5118b2e8b82930cd71c2679.tar.xz plus-df56c8f79f51cf3ea5118b2e8b82930cd71c2679.zip |
Simplify OpenGL functions defenition.
Diffstat (limited to 'src/render/mgl.h')
-rw-r--r-- | src/render/mgl.h | 93 |
1 files changed, 3 insertions, 90 deletions
diff --git a/src/render/mgl.h b/src/render/mgl.h index d2ad570d9..7bd7190d6 100644 --- a/src/render/mgl.h +++ b/src/render/mgl.h @@ -27,98 +27,11 @@ #include "render/mgldefines.h" #include "render/mgltypes.h" -#define defNameE(name) extern name##_t m##name +#define defName(name) extern name##_t m##name -defNameE(glGenRenderbuffers); -defNameE(glBindRenderbuffer); -defNameE(glRenderbufferStorage); -defNameE(glGenFramebuffers); -defNameE(glBindFramebuffer); -defNameE(glFramebufferTexture2D); -defNameE(glFramebufferRenderbuffer); -defNameE(glDeleteFramebuffers); -defNameE(glDeleteRenderbuffers); -defNameE(glGetStringi); -defNameE(glGenSamplers); -defNameE(glDeleteSamplers); -defNameE(glBindSampler); -defNameE(glSamplerParameteri); -defNameE(glDebugMessageControl); -defNameE(glDebugMessageCallback); -defNameE(glFrameTerminator); -defNameE(glLabelObject); -defNameE(glGetObjectLabel); -defNameE(glInsertEventMarker); -defNameE(glPushGroupMarker); -defNameE(glPopGroupMarker); -defNameE(glGenVertexArrays); -defNameE(glBindVertexArray); -defNameE(glDeleteVertexArrays); -defNameE(glVertexAttribPointer); -defNameE(glEnableVertexAttribArray); -defNameE(glDisableVertexAttribArray); -defNameE(glGenBuffers); -defNameE(glDeleteBuffers); -defNameE(glBindBuffer); -defNameE(glBufferData); -defNameE(glCreateShader); -defNameE(glDeleteShader); -defNameE(glGetShaderiv); -defNameE(glGetShaderInfoLog); -defNameE(glGetShaderSource); -defNameE(glShaderSource); -defNameE(glCompileShader); -defNameE(glLinkProgram); -defNameE(glDeleteProgram); -defNameE(glCreateProgram); -defNameE(glAttachShader); -defNameE(glDetachShader); -defNameE(glGetAttachedShaders); -defNameE(glGetUniformLocation); -defNameE(glGetActiveUniform); -defNameE(glGetProgramiv); -defNameE(glBindFragDataLocation); -defNameE(glUseProgram); -defNameE(glValidateProgram); -defNameE(glGetAttribLocation); -defNameE(glUniform1f); -defNameE(glUniform2f); -defNameE(glUniform3f); -defNameE(glUniform4f); -defNameE(glCheckFramebufferStatus); -defNameE(glGetProgramInfoLog); -defNameE(glProgramUniform1f); -defNameE(glProgramUniform2f); -defNameE(glProgramUniform3f); -defNameE(glProgramUniform4f); -defNameE(glBindVertexBuffer); -defNameE(glVertexAttribBinding); -defNameE(glVertexAttribFormat); -defNameE(glBindVertexBuffers); -defNameE(glIsBuffer); -defNameE(glVertexAttribIFormat); -defNameE(glVertexAttribIPointer); -defNameE(glInvalidateTexImage); -defNameE(glCopyImageSubData); -defNameE(glPushDebugGroup); -defNameE(glPopDebugGroup); -defNameE(glObjectLabel); -defNameE(glTexStorage2D); -defNameE(glGenQueries); -defNameE(glBeginQuery); -defNameE(glEndQuery); -defNameE(glDeleteQueries); -defNameE(glGetQueryObjectiv); -defNameE(glGetQueryObjectui64v); -defNameE(glTextureSubImage2D); -defNameE(glClearTexImage); -defNameE(glClearTexSubImage); +#include "render/mgl.hpp" -#ifdef WIN32 -defNameE(wglGetExtensionsString); -#endif - -#undef defNameE +#undef defName #endif // USE_OPENGL #endif // RENDER_MGL_H |