彩色立方体OpenGL

时间:2021-12-24 10:40:54
【文件属性】:
文件名称:彩色立方体OpenGL
文件大小:870B
文件格式:SLN
更新时间:2021-12-24 10:40:54
opengl #include "StdAfx.h" #include GLfloat step = 0.0;//定义旋转角度 static GLfloat c1[] = { 0.0,0.0,1.0 }, c2[] = { 0.0,1.0,1.0 }, c3[] = { 1.0,1.0,1.0 }, c4[] = { 1.0,0.0,1.0 }, c5[] = { 1.0,0.0,0.0 }, c6[] = { 1.0,1.0,0.0 }, c7[] = { 0.0,1.0,0.0 }, c8[] = { 1.0,1.0,1.0 };//颜色立方体的颜色 void myinit(void); //初始化设置 void myReshape(GLsizei w, GLsizei h); //屏幕大小改变时响应函数 void display(void); //屏幕绘制响应函数 void controlIdleFunc(int button, int state, int x, int y); //鼠标点击响应函数 void DrawColorBox(void); //绘制立方体函数 void myinit(void)

网友评论