nitlanguage
/
nit.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
994c986
)
lib/gamnit flat: set array_enabled at each draw
author
Alexis Laferrière
<alexis.laf@xymus.net>
Tue, 19 Jan 2016 13:56:55 +0000
(08:56 -0500)
committer
Alexis Laferrière
<alexis.laf@xymus.net>
Tue, 19 Jan 2016 19:08:40 +0000
(14:08 -0500)
Signed-off-by: Alexis Laferrière <alexis.laf@xymus.net>
lib/gamnit/flat.nit
patch
|
blob
|
history
diff --git
a/lib/gamnit/flat.nit
b/lib/gamnit/flat.nit
index
eaa5ba8
..
3ed34fe
100644
(file)
--- a/
lib/gamnit/flat.nit
+++ b/
lib/gamnit/flat.nit
@@
-68,6
+68,10
@@
class Sprite
glActiveTexture gl_TEXTURE0
glBindTexture(gl_TEXTURE_2D, texture.root.gl_texture)
+ simple_2d_program.translation.array_enabled = false
+ simple_2d_program.color.array_enabled = false
+ simple_2d_program.scale.array_enabled = false
+
simple_2d_program.translation.uniform(center.x, -center.y, center.z, 0.0)
simple_2d_program.color.uniform(1.0, 1.0, 1.0, alpha)
simple_2d_program.scale.uniform scale