投影

一、正投影

GLFrustum::setOrthographic(GLfloat xmin,GLfloat xmax,GLfloat ymin,GLfloat ymax,GLfloat zmin,GLfloat zmax);

二、透视投影

GLFrustum::setPerspective(float fFov,float fAspect,float fNear,float FFar);

fFov:垂直方向上的视场仰角。
fAspect:窗口的宽度与高度的纵横比(用宽度除以高度)
fNear:到近裁剪面的距离
fFar:到远裁剪面的距离

 

posted @ 2019-07-29 17:34  突突兔  阅读(198)  评论(0编辑  收藏  举报