OpenGL Notes | Basics
Contents
OpenGL is a graphics API used for real time rendering calculations that are processed by the GPU
1. Screen and Coordinates
|
|
glMatrixMode(GLenum mode)
: sets the current matrix mode
GL_MODELVIEW
: Applies subsequent matrix operations to the modelview matrix stack.GL_PROJECTION
: Applies subsequent matrix operations to the projection matrix stack.
glLoadIdentity()
: replace the current matrix with the identity matrix
Reference:
[1] https://www.khronos.org/registry/OpenGL-Refpages/gl2.1/xhtml/glMatrixMode.xml
[2] https://www.khronos.org/registry/OpenGL-Refpages/gl2.1/xhtml/glLoadMatrix.xml
[3] https://www.khronos.org/registry/OpenGL-Refpages/gl2.1/xhtml/glLoadIdentity.xml