nitlanguage
/
nit.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ef22605
)
lib/glesv2: intro services to synchronize operations on the server
author
Alexis Laferrière
<alexis.laf@xymus.net>
Sun, 27 Sep 2015 14:31:27 +0000
(10:31 -0400)
committer
Alexis Laferrière
<alexis.laf@xymus.net>
Mon, 28 Sep 2015 00:28:38 +0000
(20:28 -0400)
Signed-off-by: Alexis Laferrière <alexis.laf@xymus.net>
lib/glesv2/glesv2.nit
patch
|
blob
|
history
diff --git
a/lib/glesv2/glesv2.nit
b/lib/glesv2/glesv2.nit
index
2db985a
..
4e683f5
100644
(file)
--- a/
lib/glesv2/glesv2.nit
+++ b/
lib/glesv2/glesv2.nit
@@
-831,6
+831,12
@@
fun glColorMask(red, green, blue, alpha: Bool) `{ glColorMask(red, green, blue,
# Set the viewport
fun glViewport(x, y, width, height: Int) `{ glViewport(x, y, width, height); `}
+# Block until all GL execution is complete
+fun glFinish `{ glFinish(); `}
+
+# Force execution of GL commands in finite time
+fun glFlush `{ glFlush(); `}
+
# Set texture parameters
fun glTexParameteri(target: GLTextureTarget, pname: GLTexParameteriName, param: GLTexParameteri) `{
glTexParameteri(target, pname, param);