-(void)setClipping
{
float aspectRatio;
const float zNear = 0.1; //1
const float zFar = 1000; //2
const float fieldOfView = 60.0; //3
GLfloat size;
CGRect frame = [[UIScreen mainScreen] bounds]; //4
aspectRatio=(float)frame.size.width/(float)frame.size.height; //5
//Set the OpenGL projection matrix.
glMatrixMode(GL_PROJECTION); //6
glLoadIdentity();
size = zNear * tanf(GLKMathDe
OpenGL ES之glFrustumf设置投影视角详解
最新推荐文章于 2022-07-08 22:03:12 发布