nitlanguage
/
nit.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
lib/gamnit depth: fix Plane drawing using indices for glDrawElements
[nit.git]
/
lib
/
gamnit
/
depth
/
more_meshes.nit
diff --git
a/lib/gamnit/depth/more_meshes.nit
b/lib/gamnit/depth/more_meshes.nit
index
9cbc830
..
1c6edf4
100644
(file)
--- a/
lib/gamnit/depth/more_meshes.nit
+++ b/
lib/gamnit/depth/more_meshes.nit
@@
-57,6
+57,9
@@
class Plane
end
redef var center = new Point3d[Float](0.0, 0.0, 0.0) is lazy
+
+ init do indices.add_all([0, 1, 2, 2, 1, 3])
+ # TODO use gl_TRIANGLE_FAN instead
end
# Cube, with 6 faces