The glRotated and glRotatef functions multiply the current matrix by a rotation matrix.
基本介紹
- 中文名:glrotatef
- 外文名:glrotatef
- 概念:The glRotated and glRotatef functions multiply the current matrix by a rotation matrix.
The glRotated and glRotatef functions multiply the current matrix by a rotation matrix.
glRotate是高級語言裡的一個函式,功能是使用一個旋轉矩陣乘以當前矩陣。...... glRotated, glRotatef -- multiply the current matrix by a rotation matrix...
而如glTranslatef(), glScalef(), glRotatef()等接口的作用是對當前模型空間進行幾何轉換。如glTranslatef(1,2,3);表示把模型的世界坐標原點從當前位置(系統總...
The glRotated and glRotatef functions multiply the current matrix by a rotation matrix...
glPopMatrix();glPushMatrix();glTranslated(m_xTranslation,m_yTranslation,m_zTranslation);glRotatef(m_xRotation, 1.0, 0.0, 0.0);...
glColor3f(1.0f, 0.0f, 0.0f);glutWireSphere(35, 30, 30);glColor3f(0.0f, 0.0f, 1.0f);glRotatef(day / 360.0 * 360.0, 0.0f, 0.0f, -1.0f);...
("%d\n",day); glRotatef((spin++)%360,0,0,1); glutPostRedisplay(); } int main(intargc,char*argv[]) { glutInit(&argc,argv); ...
glPushMatrix();glRotatef(40,1.0,1.0,1.0);glutSolidCube(2);glPopMatrix();glDisable(GL_COLOR_MATERIAL);glPopMatrix();...