Vote count:
0
Recently I started to learn OpenGL (before that I was using DirectX 9). I have question about OpenGL projection, view and model matrices. In DirectX 9 i can easily manipulate matrix content and then apply it by using SetTransform function.
But now when I saw in MSDN OpenGL glLoadMatrixf function, it only changes current matrix which I can change by glMatrixMode function.
This function gets one argument with 3 options: GL_MODELVIEW, GL_PROJECTION and GL_TEXTURE. But that's the problem. How can I modify world matrix?
In DirectX 9 I can use SetTransform and one of state types: D3DTS_WORLD (macro), D3DTS_VIEW and D3DTS_PROJECTION and set matrices for them.
Thanks in advance!
asked 3 mins ago
OpenGL Projection, View and World matrices
Aucun commentaire:
Enregistrer un commentaire