Objective c 添加投影的OpenGLES

Objective c 添加投影的OpenGLES,objective-c,ios,opengl-es-2.0,projection-matrix,Objective C,Ios,Opengl Es 2.0,Projection Matrix,我开始学习OpenGLES,现在我正在读这篇文章 我已经到达段落添加了一个投影,我被困在那里: // Add to render, right before the call to glViewport CC3GLMatrix *projection = [CC3GLMatrix matrix]; float h = 4.0f * self.frame.size.height / self.frame.size.width; [projection populateFromFrustumLeft

我开始学习OpenGLES,现在我正在读这篇文章

我已经到达段落添加了一个投影,我被困在那里:

// Add to render, right before the call to glViewport
CC3GLMatrix *projection = [CC3GLMatrix matrix];
float h = 4.0f * self.frame.size.height / self.frame.size.width;
[projection populateFromFrustumLeft:-2 andRight:2 andBottom:-h/2 andTop:h/2 andNear:4 andFar:10];
glUniformMatrix4fv(_projectionUniform, 1, 0, projection.glMatrix);

// Modify vertices so they are within projection near/far planes
const Vertex Vertices[] = {
    {{1, -1, -7}, {1, 0, 0, 1}},
    {{1, 1, -7}, {0, 1, 0, 1}},
    {{-1, 1, -7}, {0, 0, 1, 1}},
    {{-1, -1, -7}, {0, 0, 0, 1}}
};
作者使用了
populateFromFrustumLeft…
中的一些变量,但没有解释它们。我想了解变量选择的逻辑,以便将来能够使用此函数


请帮我理解逻辑

我找到了一个非常清楚的解释

观看此节目,您将在18:00看到答案