lib/glesv2: intro services to set the clear values of buffers and filters
authorAlexis Laferrière <alexis.laf@xymus.net>
Sun, 27 Sep 2015 14:30:49 +0000 (10:30 -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 a3003d0..2db985a 100644 (file)
@@ -816,9 +816,18 @@ fun glClearColor(red, green, blue, alpha: Float) `{
        glClearColor(red, green, blue, alpha);
 `}
 
+# Specify the clear `value` for the depth buffer, default at 1.0
+fun glClearDepthf(value: Float) `{ glClearDepthf(value); `}
+
+# Specify the clear `value` for the stencil buffer, default at 0
+fun glClearStencil(value: Int) `{ glClearStencil(value); `}
+
 # Clear the `buffer`
 fun glClear(buffer: GLBuffer) `{ glClear(buffer); `}
 
+# Enable and disable writing of frame buffer color components
+fun glColorMask(red, green, blue, alpha: Bool) `{ glColorMask(red, green, blue, alpha); `}
+
 # Set the viewport
 fun glViewport(x, y, width, height: Int) `{ glViewport(x, y, width, height); `}