2012年5月6日
摘要: #define GLUT_DISABLE_ATEXIT_HACK #include <GL/glut.h>#define WIDTH 64#define HEIGHT 64GLubyte Image[HEIGHT][WIDTH][4];GLfloat xRot;void makeImage(void){ int i, j, c; for (i = 0; i < HEIGHT; i++) { for (j = 0; j < WIDTH; j++) { c = ((((i&0x8)==0)^((j&0x8))==0))*255; ... 阅读全文
posted @ 2012-05-06 17:01 xiacl 阅读(2380) 评论(0) 推荐(0) 编辑