【发布时间】:2015-04-05 21:09:38
【问题描述】:
这个函数的确切含义是什么
if(w<=h)
glortho(-2.0,2.0,-2.0*(GLfloat)h/(GLfloat)w,2.0*(GLfloat)h/(GLfloat)w,-2.0,2.0);
else
glortho(-2.0*(GLfloat)w/(GLfloat)h,2.0*(GLfloat)w/(GLfloat)h,-2.0,2.0,-2.0,2.0);
我知道 glortho 用于正交视图,可以查看 3d 对象,即 (left,right,bottom,top near,far)views
为什么使用负号和正号以及为什么要除以高度和宽度
【问题讨论】: