OpenGL


4. - 3


glBegin(GL_TRIANGLES);//

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

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

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

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

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

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

glEnd();//

, glLoadIdentity(). . ? , . , , . X ( ), , Y. glLoadIdentity() . X, .

, X , Y , Z . . 1.5 , 3.0, . , , , 1.5 , 0.0. 3.0 ( ), 1.5 .

, X. .

glLoadIdentity();

glTranslatef(1.5f,0.0f,-6.0f);// 1.5

glRotatef(rquad,1.0f,0.0f,0.0f);// X