commit 25dd58533042a478775c48ccf63e31676afd6da4 parent 24f7f26bdcd5a9b04b35fcf32eab1ee09a50e99f Author: Georges Dupéron <jahvascriptmaniac+github@free.fr> Date: Sun, 2 Oct 2011 13:47:54 +0200 Correction d'un petit bug : les coins du plus gros triangle n'utilisaient pas get_z(). Diffstat:
| M | roam.c | | | 6 | +++--- |
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/roam.c b/roam.c @@ -312,9 +312,9 @@ Triangle* initDefaultExample() { Vertex* vLeft = (Vertex*)malloc(sizeof(Vertex)); Vertex* vRight = (Vertex*)malloc(sizeof(Vertex)); - vApex->x = 1024; vApex->y = 1024; vApex->z = 0; - vLeft->x = 0; vLeft->y = 0; vLeft->z = 0; - vRight->x = 2048; vRight->y = 0; vRight->z = 0; + vApex->x = 1024; vApex->y = 1024; vApex->z = get_z(1024,1024); + vLeft->x = 0; vLeft->y = 0; vLeft->z = get_z(0,0); + vRight->x = 2048; vRight->y = 0; vRight->z = get_z(2048,0); t->vApex = vApex; t->vLeft = vLeft;