OpenGL


9. 3D - 3


(. . - , , :). .)

typedef struct//

{

int r, g, b;//

GLfloat dist;//

GLfloat angle;//

}

stars;// - Stars

stars star[num];// 'star' 'num',

// 'stars'

(zoom), (tilt). spin, z, .

loop , 50- , texture[1] - , . , , .

GLfloatzoom=-15.0f;//

GLfloat tilt=90.0f;//

GLfloatspin;//


GLuintloop;//

GLuinttexture[1];//


LRESULTCALLBACK WndProc(HWND, UINT, WPARAM, LPARAM);// WndProc

. , 6, 7 8 . , star.bmp. glGenTextures(1, &texture[0]). (linear filtering).

AUX_RGBImageRec *LoadBMP(char *Filename)// bmp

{

FILE *File=NULL;//