From 470d7d72cf4cba1bbb29eccd1211f36e4f25e296 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Alexis=20Laferri=C3=A8re?= Date: Tue, 19 Jan 2016 09:08:24 -0500 Subject: [PATCH] lib/gamnit depth: fix Plane drawing using indices for glDrawElements MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Alexis Laferrière --- lib/gamnit/depth/more_meshes.nit | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/gamnit/depth/more_meshes.nit b/lib/gamnit/depth/more_meshes.nit index 9cbc830..1c6edf4 100644 --- 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 -- 1.7.9.5