Quelques petites rectifications.

This commit is contained in:
Yoann 2011-10-11 21:28:16 +02:00
parent dca352236c
commit d8a0b65405
2 changed files with 2 additions and 3 deletions

View File

@ -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;

View File

@ -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);
}