lib/glesv2: intro services to synchronize operations on the server
authorAlexis Laferrière <alexis.laf@xymus.net>
Sun, 27 Sep 2015 14:31:27 +0000 (10:31 -0400)
committerAlexis 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

index 2db985a..4e683f5 100644 (file)
@@ -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);