共 6 篇文章 |
|
阅113 转0 评0 公众公开 11-09-01 14:47 |
阅89 转0 评0 公众公开 11-09-01 10:08 |
阅51 转0 评0 公众公开 11-08-31 16:42 |
函数原型gluLookAt(GLdoble eyex,GLdouble eyey,GLdouble eyez,GLdouble centerx,GLdouble centery,GLdouble centerz,GLdouble upx,GLdouble upy,GLdouble upz);gluPerspective(GLdouble fovy,GLdouble aspect,GLdouble zNear,GLdouble zFar)现在来看gluLookAt(GLdoble eyex,GLdouble eyey,GLdouble eyez,GLdouble centerx,GLdouble centery,GL... 阅101 转0 评0 公众公开 11-08-31 14:42 |
OpenGL总结。建立允许用户选择(select)屏幕区域或拾取(pick)绘制在屏幕上的物体的应用程序 利用OpenGL的反馈(feedback)模式获取绚染计算结果 有些图形应用程序只绘制两维和三维物体构成的静态图形,另一些允许用户识别屏幕上的物体并移动、修改、删除或用其它方法操纵这些物体。根据需要设置当前颜色,一旦一种颜色被设置为当前颜色,... 阅502 转10 评0 公众公开 11-08-31 13:44 |
glViewport()函数和glOrtho()函数的理解(转)glOrtho(-1.5, 1.5, -1.5 * (GLfloat)height/(GLfloat)width, 1.5 * (GLfloat)height/(GLfloat)width, -10.0, 10.0);glOrtho(-1.5*(GLfloat)width/(GLfloat)height, 1.5*(GLfloat)w/(GLfloat)h, -1.5, 1.5, -10.0, 10.0);glOrtho(0, 1.5, 0, 1.5 * (GLfloat)h/(GLfloat)w, -10.0, 10.0);glOrtho(-1.5... 阅239 转3 评0 公众公开 11-08-31 13:25 |