OpenGL


5. 3D - 6


glColor3f(0.0f,0.0f,1.0f);//

glVertex3f(-1.0f, 1.0f, 1.0f);// ()

glVertex3f(-1.0f, 1.0f,-1.0f);//

glVertex3f(-1.0f,-1.0f,-1.0f);//

glVertex3f(-1.0f,-1.0f, 1.0f);//

. X . . , ;).

, , . Evil . TAB. , .

glColor3f(1.0f,0.0f,1.0f);//

glVertex3f( 1.0f, 1.0f,-1.0f);// ()

glVertex3f( 1.0f, 1.0f, 1.0f);//

glVertex3f( 1.0f,-1.0f, 1.0f);//

glVertex3f( 1.0f,-1.0f,-1.0f);//

glEnd();//


rtri+=0.2f;//

rquad-=0.15f;//

}

, 3D . OpenGL, , . . , , . , 3D .

3D , . . . , . , , , .