From c04c445ee35bd89b120643499959c840f9ff986f Mon Sep 17 00:00:00 2001 From: =?utf8?q?Alexis=20Laferri=C3=A8re?= Date: Sat, 12 Sep 2015 09:25:04 -0400 Subject: [PATCH] lib/glesv2: intro glIsTexture and glBindTexture MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Alexis Laferrière --- lib/glesv2/glesv2.nit | 6 ++++++ 1 file changed, 6 insertions(+) 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 -- 1.7.9.5