nitlanguage
/
nit.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
67c37a0
)
lib/glesv2: intro glIsTexture and glBindTexture
author
Alexis Laferrière
<alexis.laf@xymus.net>
Sat, 12 Sep 2015 13:25:04 +0000
(09:25 -0400)
committer
Alexis 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
patch
|
blob
|
history
diff --git
a/lib/glesv2/glesv2.nit
b/lib/glesv2/glesv2.nit
index
9203efd
..
3dbc72b
100644
(file)
--- 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