自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(0)
  • 资源 (2)
  • 收藏
  • 关注

空空如也

The Design and Evolution of C++(高清文字非影印版本)

非影印版本哦,文字格式

2023-12-15

babelua v3.2.2.0

vs上的一款插件,可用于cocos2d的调试,代码书写规范方便

2016-02-14

opengl20面体

opengl 20面体#include <GL/glut.h> #define X .525731112119133606 #define Z .850650808352039932 static GLfloat vdata[12][3] = {//各顶点坐标 {-X,0.0,Z},{X,0.0,Z},{-X,0.0,-Z},{X,0.0,-Z}, {0.0,Z,X},{0.0,Z,-X},{0.0,-Z,X},{0.0,-Z,-X}, {Z,X,0.0},{-Z,X,0.0},{Z,-X,0.0},{-Z,-X,0.0}, }; static GLuint tindices[20][3] = {//构成各面(三角形)的顶点索引 {1,4,0},{4,9,0},{4,5,9},{8,5,4},{1,8,4}, {1,10,8},{10,3,8},{8,3,5},{3,2,5},{3,7,2}, {3,10,7},{10,6,7},{6,11,7},{6,0,11},{6,1,0}, {10,1,6},{11,0,9},{2,11,9},{5,2,9},{11,2,7}, }; void display() { glClear(GL_COLOR_BUFFER_BIT); glBegin(GL_TRIANGLES); for(int i = 0;i < 20;++i) { glColor3f(1.0,1.0,i * 1.0 / 20);//颜色设置 glVertex3fv(&vdata;[tindices[i][0]][0]); glVertex3fv(&vdata;[tindices[i][1]][0]); glVertex3fv(&vdata;[tindices[i][2]][0]); } glEnd(); glFlush(); } void init() { glClearColor(0.0,0.0,0.0,0.0); } int main(int argc,char** argv) { glutInit(&argc;,argv); glutInitDisplayMode(GLUT_SINGLE | GLUT_RGB); glutInitWindowSize(250,250); glutInitWindowPosition(100,100); glutCreateWindow("Polygon"); init(); glutDisplayFunc(display); glutMainLoop(); return 0; }

2012-04-14

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除