Programming/openGL
glMatrixMode()
구차니
2020. 4. 14. 21:49
GL_MODELVIEW와 GL_PROJECTION만 예제로 많이 보았는데
GL_COLOR와 GL_TEXTURE도 가능한 옵션(?)이다.
void glMatrixMode(GLenum mode);
GL_MODELVIEW
Applies subsequent matrix operations to the modelview matrix stack.
GL_PROJECTION
Applies subsequent matrix operations to the projection matrix stack.
GL_TEXTURE
Applies subsequent matrix operations to the texture matrix stack.
GL_COLOR
Applies subsequent matrix operations to the color matrix stack.
[링크 : https://www.khronos.org/registry/OpenGL-Refpages/gl2.1/xhtml/glMatrixMode.xml]