
opengl
文章平均质量分 73
xmanstyle
用毫无意义的生活细节淹没彼此
展开
-
gluOrtho2D() 结合glViewport() 的使用
#include #include #include #include #include using namespace std; /***/ void drawTran() { glBegin(GL_POLYGON); glVertex2i(0,50); glVertex2i(50,-25); glVertex2i(-50,-25);原创 2016-05-11 23:26:06 · 988 阅读 · 0 评论 -
glFrustum(),glOrtho(),gluPerspective()的实例
opengl 中投影有两种:透视投影 和 正投影 1. 透视投影 :(视景体为棱台,产生的3d图像更具真实感) glFrustum(GLdouble left,GLdouble right,GLdouble bottom,GLdouble top,GLdouble near,GLdouble far): left , right , bottom , top这四个参数为剪裁面的范围,near原创 2016-06-12 17:58:57 · 1422 阅读 · 0 评论