From d8a0b654059802b9b94b4ad1076e0f0df11b467c Mon Sep 17 00:00:00 2001 From: Yoann Date: Tue, 11 Oct 2011 21:28:16 +0200 Subject: [PATCH] Quelques petites rectifications. --- display.c | 1 - square.c | 4 ++-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/display.c b/display.c index a09f441..46a9550 100644 --- a/display.c +++ b/display.c @@ -68,7 +68,6 @@ int mainLoop() { break; case SDL_MOUSEMOTION: - printf("mouse motion\n"); xAngle = ((event.motion.x-windowWidth/2)*340/(windowWidth)); yAngle = (event.motion.y-windowHeight/2)*340/(windowHeight); break; diff --git a/square.c b/square.c index 57cfb55..504c879 100644 --- a/square.c +++ b/square.c @@ -253,7 +253,7 @@ void QT_enumerate(QTNode* first) { for (n = first; n != NULL; n = n->nextNode) { qtnode_print(n); - glEnable(GL_NORMALIZE); + glBegin(GL_TRIANGLE_FAN); setNormal(n->vertices[QT_NE],n->vertices[QT_SO],n->vertices[QT_SE]); // envoyer le vertex central @@ -265,7 +265,7 @@ void QT_enumerate(QTNode* first) { for (r = 0, i = 0; r < 4; r++) { // On parcourt tous les vertices le long du côté. for (v = n->vertices[ROT_NO]; v != n->vertices[ROT_NE]; i++, v = v->next[ROT_E]) { - if(i <= 2){ + if(i <= 1){ va = v; //setNormal(center,n->vertices[QT_SO],v); }