From: Alexis Laferrière Date: Sun, 27 Sep 2015 14:30:49 +0000 (-0400) Subject: lib/glesv2: intro services to set the clear values of buffers and filters X-Git-Tag: v0.7.8~2^2~6 X-Git-Url: http://nitlanguage.org lib/glesv2: intro services to set the clear values of buffers and filters Signed-off-by: Alexis Laferrière --- diff --git a/lib/glesv2/glesv2.nit b/lib/glesv2/glesv2.nit index a3003d0..2db985a 100644 --- a/lib/glesv2/glesv2.nit +++ b/lib/glesv2/glesv2.nit @@ -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); `}