glPushMatrix()/glPopMatrix() & glLoadMatrixf()

这三个函数你搞清楚了没?

头大啊..

http://www.gamedev.net/community/forums/topic.asp?topic_id=489879

command                 result

glLoadMatrixf(A)       stack = [A]
glPushMatrix()         stack = [A, A]
glMultMatrixf(B)       stack = [BA, A]
glPopMatrix()          stack = [A]

glMultMatrixf(B) stack = [AB, A]

 http://www.youtube.com/watch?v=MaFMsecZn88 来看看我这两天的进展吧.

 http://www.khronos.org/opengles/documentation/opengles1_0/html/glFrustum.html

 原理.

 glLoadIdentity

(
1 0 0 0
0 1 0 0
0 0 1 0
0 0 0 1
)

 

http://www.khronos.org/opengles/documentation/opengles1_0/html/index-thematic.html

函数接口说明文档.

相关文章:

猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-06-24
  • 2022-12-23
相关资源
相似解决方案