#include "cartoon_travail.h" extern GLuint IDTEX; void tracerScene(MObjet obj) { float m[16]; glPushMatrix(); glEnable(GL_CULL_FACE); // activerTexture(IDTEX); glGetFloatv(GL_MODELVIEW_MATRIX, m); glLoadIdentity(); glTranslatef(0, 0, 0.2); glMultMatrixf(m); glCullFace(GL_FRONT); glColor3f(0,0,0); tracer(obj); glPopMatrix(); glCullFace(GL_BACK); glColor3f(1,1,1); tracer(obj); // desactiverTexture(); } void tracerScene2(MObjet obj) { glColor3f(1,0,0); tracer(obj); glColor3f(0,0,1); for(int j=0;j<5;j++) { for(int i=0;i<5;i++) { glPushMatrix(); glTranslatef(5.0*(i-2),5.0*(j-2),-20); glutSolidSphere(1,10,10); glPopMatrix(); } } }