![](https://img-blog.csdnimg.cn/20201014180756925.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
OpenGL
FrankieWang008
从事c# C++ VC++,欢迎大家一起讨论学习~~
展开
-
glTranslatef 与 glVertex3f 的坐标参照点
glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT);// Clear Screen And Depth Buffer glLoadIdentity();// Reset The Current Modelview Matrix glTranslatef(-1.5f,0.0f,-6.0f);// Move Left 1.5 Units And I原创 2011-11-23 16:29:53 · 8650 阅读 · 0 评论 -
变换坐标系的函数——glLoadIdentity()与glTranslatef()和glRotatef()
glLoadIdentity() 将当前的用户坐标系的原点移到了屏幕中心:类似于一个复位操作 1.X坐标轴从左至右,Y坐标轴从下至上,Z坐标轴从里至外。 2.OpenGL屏幕中心的坐标值是X和Y轴上的0.0f点。 3.中心左面的坐标值是负值,右面是正值。 移向屏幕顶端是正值,移向屏幕底端是负值。 移入屏幕深处是负值,移出屏幕则是正值。 glTranslatef(x,转载 2011-12-02 10:58:40 · 1092 阅读 · 0 评论