summaryrefslogtreecommitdiff
path: root/src/render/naclglfunctions.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2015-12-11 18:30:47 +0300
committerAndrei Karas <akaras@inbox.ru>2015-12-11 19:24:23 +0300
commitec2493471591cee04b2ae691c99c4f1f34612bb8 (patch)
tree5343a09be0867b73022fd8000b9b399141eb6954 /src/render/naclglfunctions.h
parent5f23fe21b29083922dab55feb33258f3f855ca9e (diff)
downloadplus-ec2493471591cee04b2ae691c99c4f1f34612bb8.tar.gz
plus-ec2493471591cee04b2ae691c99c4f1f34612bb8.tar.bz2
plus-ec2493471591cee04b2ae691c99c4f1f34612bb8.tar.xz
plus-ec2493471591cee04b2ae691c99c4f1f34612bb8.zip
Add pseudo function for some gl calls.
Diffstat (limited to 'src/render/naclglfunctions.h')
-rw-r--r--src/render/naclglfunctions.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/render/naclglfunctions.h b/src/render/naclglfunctions.h
index 310343283..83757f07c 100644
--- a/src/render/naclglfunctions.h
+++ b/src/render/naclglfunctions.h
@@ -88,6 +88,16 @@ extern PP_Resource gles2Context;
gles2Interface->CreateProgram(gles2Context)
#define mglGetProgramInfoLog(...) \
gles2Interface->GetProgramInfoLog(gles2Context, __VA_ARGS__)
+#define mglDisable(...) \
+ gles2Interface->Disable(gles2Context, __VA_ARGS__)
+#define mglHint(...) \
+ gles2Interface->Hint(gles2Context, __VA_ARGS__)
+#define mglScissor(...) \
+ gles2Interface->Scissor(gles2Context, __VA_ARGS__)
+#define mglEnable(...) \
+ gles2Interface->Enable(gles2Context, __VA_ARGS__)
+#define mglGetIntegerv(...) \
+ gles2Interface->GetIntegerv(gles2Context, __VA_ARGS__)
#endif // defined(__native_client__) && defined(USE_OPENGL)
#endif // RENDER_NACLGLFUNCTIONS_H