A voir également:
- Comment faire un cube avec openGL?
- Opengl 2.1 download - Forum Minecraft
- Opengl 2.0 download windows 10 64 bit - Forum Logiciels
- Remonter un rubik's cube 4x4 - Forum Loisirs / Divertissements
- Opengl 2.0 ✓ - Forum Logiciels
- Metre cube sur clavier - Forum Clavier
1 réponse
Et avec ça non plus il ne tourne pas! Help!
glClearColor(0.0f, 0.0f, 0.0f, 0.0f);
glClear(GL_COLOR_BUFFER_BIT);
glPushMatrix();
glRotatef(theta, 3.5f, 5.2f, 4.8f);
glBegin(GL_QUADS);
glColor3f(1.0f, 0.0f, 0.0f); glVertex3f(0.5f, 0.5f, 0.7f);
glColor3f(1.0f, 0.0f, 0.0f); glVertex3f(0.5f, -0.5f, 0.7f);
glColor3f(1.0f, 0.0f, 0.0f); glVertex3f(-0.5f, -0.5f, 0.7f);
glColor3f(1.0f, 0.0f, 0.0f); glVertex3f(-0.5f, 0.5f, 0.7f);
theta+=0.25;
glRotatef(theta, 3.5f, 5.2f, 4.8f);
glColor3f(1.0f, 0.0f, 0.0f); glVertex3f(0.5f, 0.5f, 0.2f);
glColor3f(1.0f, 0.0f, 0.0f); glVertex3f(0.5f, -0.5f, 0.2f);
glColor3f(1.0f, 0.0f, 0.0f); glVertex3f(-0.5f, -0.5f, 0.2f);
glColor3f(1.0f, 0.0f, 0.0f); glVertex3f(-0.5f, 0.5f, 0.2f);
theta+=0.25;
glRotatef(theta, 3.5f, 5.2f, 4.8f);
glColor3f(1.0f, 0.0f, 0.0f); glVertex3f(0.5f, 0.5f, 0.7f);
glColor3f(1.0f, 0.0f, 0.0f); glVertex3f(0.5f, -0.5f, 0.7f);
glColor3f(1.0f, 0.0f, 0.0f); glVertex3f(-0.5f, -0.5f, 0.7f);
glColor3f(1.0f, 0.0f, 0.0f); glVertex3f(-0.5f, 0.5f, 0.7f);
theta+=0.25;
glRotatef(theta, 3.5f, 5.2f, 4.8f);
glColor3f(1.0f, 0.0f, 0.0f); glVertex3f(0.5f, 0.5f, 0.7f);
glColor3f(1.0f, 0.0f, 0.0f); glVertex3f(0.5f, -0.5f, 0.7f);
glColor3f(1.0f, 0.0f, 0.0f); glVertex3f(-0.5f, -0.5f, 0.7f);
glColor3f(1.0f, 0.0f, 0.0f); glVertex3f(-0.5f, 0.5f, 0.7f);
theta+=0.25;
glRotatef(theta, 3.5f, 5.2f, 4.8f);