lib/glesv2: intro glIsTexture and glBindTexture
authorAlexis Laferrière <alexis.laf@xymus.net>
Sat, 12 Sep 2015 13:25:04 +0000 (09:25 -0400)
committerAlexis Laferrière <alexis.laf@xymus.net>
Mon, 14 Sep 2015 18:00:38 +0000 (14:00 -0400)
Signed-off-by: Alexis Laferrière <alexis.laf@xymus.net>

lib/glesv2/glesv2.nit

index 9203efd..3dbc72b 100644 (file)
@@ -406,6 +406,12 @@ do
        end
 end
 
+# Does `name` corresponds to a texture?
+fun glIsTexture(name: Int): Bool `{ return glIsTexture(name); `}
+
+# Bind the named `texture` to a `target`
+fun glBindTexture(target: GLTextureTarget, texture: Int) `{ glBindTexture(target, texture); `}
+
 # Texture minifying and magnifying function
 extern class GLTextureFilter
        super GLEnum