19,468
社区成员
发帖
与我相关
我的任务
分享
static float an = 0.0;
an += 1.0f;
glPushMatrix();
glTranslatef(-3, -3, 0);
glRotatef(an, 0, 0, 1);
glTranslatef(3, 3, 0);
glBegin(GL_POINTS);
glColor3f(0,0,1);
glVertex3f(5, 5, 0);
glEnd();
glPopMatrix();
static float an = 0.0;
an += 1.0f;
glPushMatrix();
glTranslatef(3, 3, 0);
glRotatef(an, 0, 0, 1);
glTranslatef(-3, -3, 0);
glBegin(GL_POINTS);
glColor3f(0,0,1);
glVertex3f(5, 5, 0);
glEnd();
glPopMatrix();