From: Alexis Laferrière Date: Sat, 12 Sep 2015 13:25:04 +0000 (-0400) Subject: lib/glesv2: intro glIsTexture and glBindTexture X-Git-Tag: v0.7.8~28^2~11 X-Git-Url: http://nitlanguage.org lib/glesv2: intro glIsTexture and glBindTexture Signed-off-by: Alexis Laferrière --- diff --git a/lib/glesv2/glesv2.nit b/lib/glesv2/glesv2.nit index 9203efd..3dbc72b 100644 --- a/lib/glesv2/glesv2.nit +++ b/lib/glesv2/glesv2.nit @@ -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