Freeed | Bon j'ai qd meme réessayé ce que tu m'as dit, et ca a l'air de fonctionner Donc mon code final :
Code :
- void Draw()
- {
- glClear(GL_DEPTH_BUFFER_BIT | GL_COLOR_BUFFER_BIT);
- glMatrixMode(GL_MODELVIEW);
- glLoadIdentity();
-
- glColorMaterial(GL_FRONT_AND_BACK, GL_SPECULAR);
- glColor3d(1,1,1);
- glMateriali(GL_FRONT_AND_BACK, GL_SHININESS, 128);
-
- gluLookAt(5,5,5,1,1,1,0,1,0);
-
- glutSolidSphere(1,50,50);
-
- SwapBuffers(DC);
- }
|
C'est juste comme ca ? |