From b95f8dc0958bc1affbbb57705a3cf4f024e01759 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Alexis=20Laferri=C3=A8re?= Date: Sat, 12 Sep 2015 11:49:03 -0400 Subject: [PATCH] lib/glesv2: intro glVertexAttrib*f and glUniform*i MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Alexis Laferrière --- lib/glesv2/glesv2.nit | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/lib/glesv2/glesv2.nit b/lib/glesv2/glesv2.nit index 474b4aa..7a75312 100644 --- a/lib/glesv2/glesv2.nit +++ b/lib/glesv2/glesv2.nit @@ -330,6 +330,32 @@ fun glDisableVertexAttribArray(index: Int) `{ glDisableVertexAttribArray(index); # Render primitives from array data fun glDrawArrays(mode: GLDrawMode, from, count: Int) `{ glDrawArrays(mode, from, count); `} +# Specify the value of a generic vertex attribute +fun glVertexAttrib1f(index: Int, x: Float) `{ glVertexAttrib1f(index, x); `} + +# Specify the value of a generic vertex attribute +fun glVertexAttrib2f(index: Int, x, y: Float) `{ glVertexAttrib2f(index, x, y); `} + +# Specify the value of a generic vertex attribute +fun glVertexAttrib3f(index: Int, x, y, z: Float) `{ glVertexAttrib3f(index, x, y, z); `} + +# Specify the value of a generic vertex attribute +fun glVertexAttrib4f(index: Int, x, y, z, w: Float) `{ glVertexAttrib4f(index, x, y, z, w); `} + +# Specify the value of a uniform variable for the current program object +fun glUniform1i(index, x: Int) `{ glUniform1i(index, x); `} + +# Specify the value of a uniform variable for the current program object +fun glUniform2i(index, x, y: Int) `{ glUniform2i(index, x, y); `} + +# Specify the value of a uniform variable for the current program object +fun glUniform3i(index, x, y, z: Int) `{ glUniform3i(index, x, y, z); `} + +# Specify the value of a uniform variable for the current program object +fun glUniform4i(index, x, y, z, w: Int) `{ glUniform4i(index, x, y, z, w); `} + +# TODO glUniform*f + # Low level array of `Float` class GLfloatArray super CArray[Float] -- 1.7.9.5