diff options
author | Andrei Karas <akaras@inbox.ru> | 2015-12-11 18:30:47 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2015-12-11 19:24:23 +0300 |
commit | ec2493471591cee04b2ae691c99c4f1f34612bb8 (patch) | |
tree | 5343a09be0867b73022fd8000b9b399141eb6954 /src/render/mgl.hpp | |
parent | 5f23fe21b29083922dab55feb33258f3f855ca9e (diff) | |
download | manaverse-ec2493471591cee04b2ae691c99c4f1f34612bb8.tar.gz manaverse-ec2493471591cee04b2ae691c99c4f1f34612bb8.tar.bz2 manaverse-ec2493471591cee04b2ae691c99c4f1f34612bb8.tar.xz manaverse-ec2493471591cee04b2ae691c99c4f1f34612bb8.zip |
Add pseudo function for some gl calls.
Diffstat (limited to 'src/render/mgl.hpp')
-rw-r--r-- | src/render/mgl.hpp | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/src/render/mgl.hpp b/src/render/mgl.hpp index 0370cde74..50c1f8648 100644 --- a/src/render/mgl.hpp +++ b/src/render/mgl.hpp @@ -76,6 +76,24 @@ defName(glValidateProgram); defName(glGetProgramInfoLog); defName(glBindAttribLocation); defName(glActiveTexture); + +#define mglDrawArrays(...) \ + glDrawArrays(__VA_ARGS__) +#define mglDisable(...) \ + glDisable(__VA_ARGS__) +#define mglHint(...) \ + glHint(__VA_ARGS__) +#define mglScissor(...) \ + glScissor(__VA_ARGS__) +#define mglEnable(...) \ + glEnable(__VA_ARGS__) +#define mglBindTexture(...) \ + glBindTexture(__VA_ARGS__) +#define mglGetIntegerv(...) \ + glGetIntegerv(__VA_ARGS__) +#define mglClear(...) \ + glClear(__VA_ARGS__) + #endif defName(glGetAttribLocation); defName(glUniform3f); |