OpenGL


9. 3D - 11


if (!keys['T'])// 'T'

{

tp=FALSE;// tp FALSE

}

, ' ', ' ', 'page up', 'page down'.

if (keys[VK_UP])// ?

{

tilt-=0.5f;//

}


if (keys[VK_DOWN])// ?

{

tilt+=0.5f;//

}


if (keys[VK_PRIOR])// Page Up ?

{

zoom-=0.2f;//

}


if (keys[VK_NEXT])// Page Down ?

{

zoom+=0.2f;//

}

, , .

if (keys[VK_F1])// F1 ?

{

keys[VK_F1]=FALSE;// FALSE

KillGLWindow();//

fullscreen=!fullscreen;

// Fullscreen () / Windowed ()

// OpenGL

if (!CreateGLWindow("NeHe's Textures,

Lighting & Keyboard Tutorial",640,480,16,fullscreen))

{

return 0;//

}

}

}

}

, - , ( ), , . , . , . 3D. .

Jeff Molofee (NeHe)

PMG

 19 2001 (c) 

Mike Samsonov

d=document;rn=Math.random(); y="

"; d.write(y);

SpyLog