OpenGL


12. - 10


glColor3fv(boxcol[yloop-1]);//

, , - . , , - . glCallList(box). box OpenGL box. box - .

, glColor3fv(), , .

glCallList(box);//

() . Q-Bert, , Q-Bert . .

glColor3fv(topcol[yloop-1]);//

, top. . . !


glCallList(top);//

}

}

return TRUE;// .


}

WinMain(). SwapBuffers(hDC). " ", "", "", "" .

SwapBuffers(hDC);// ( )

if (keys[VK_LEFT])// ?

{

yrot-=0.2f;// ,

}

if (keys[VK_RIGHT])// ?

{

yrot+=0.2f;// ,

}

if (keys[VK_UP])// ?

{

xrot-=0.2f;// ,