![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
openGL
chuibb001
这个作者很懒,什么都没留下…
展开
-
glLoadIdentity
The glLoadIdentity function replaces the current matrix with the identity matrix.glLoadIdentity该函数的功能是重置当前指定的矩阵为单位矩阵.原创 2013-03-26 16:17:16 · 643 阅读 · 0 评论 -
gluLookAt
void gluLookAt(GLdouble eyex,GLdouble eyey,GLdouble eyez,GLdouble centerx,GLdouble centery,GLdouble centerz,GLdouble upx,GLdouble upy,GLdouble upz);该函数定义一个视图矩阵,并与当前矩阵相乘。第一组eyex, eyey,eyez 相机在世原创 2013-03-26 16:21:05 · 741 阅读 · 0 评论 -
glOrtho
函数简介使用glOrtho[1]函数可以将当前的可视空间设置为正投影空间。基参数的意义如图,如果绘制的图空间本身就是二维的,可以使gluOrtho2D.他的使用类似于glOrtho.函数用途设置或修改修剪空间的范围句法void glOrtho(GLdouble left,GLdouble right,GLdouble bottom,GLdouble top,原创 2013-03-26 17:02:47 · 827 阅读 · 0 评论 -
glRotatef
glRotatef(GLfloat angle,GLfloat x,GLfloat y,GLfloat z)glRotatef(45,1,0,0)物體如何旋转?想象:从 坐标(0,0,0)即原点,引出一条线到(1,0,0),用右手握住这条线,这时,你会问,如何握?右手大拇指指向 (0,0,0)至(1,0,0)的方向 才握。另外四个手指的弯曲指向 即是物体旋转方向。原创 2013-03-26 16:14:33 · 775 阅读 · 0 评论 -
glTranslatef
glTranslatef(x, y, z)沿着 X, Y 和 Z 轴移动。注意在glTranslatef(x, y, z)中,当您移动的时候,您并不是相对屏幕中心移动,而是相对与当前所在的屏幕位置。其作用就是将你绘点坐标的原点在当前原点的基础上平移一个(x,y,z)向量。原创 2013-03-26 16:15:42 · 917 阅读 · 0 评论