Cursor Position OpenGL Code Blocks Example
In the previous post in our blog, we have posted about OpenGL mouse position , in similar way today's post we are going to have tutorial about Cursor Position in OpenGL.
Do you Know about Code::Blocks?
There are many IDE for C/C+, Like same Code::Blocks is one of the IDE for C/C++/FORTRAN. Built around a plugin framework, Code::Blocks can be extended with plugins. Any kind of functionality can be added by installing/coding a plugin. For instance, compiling and debugging functionality is already provided by plugins!
Cursor Position OpenGL
The coordinate of screen in the OpenGL window starts from upper left corner and we determined the mouse position in same we determine the cursor position in OpenGL. In this post wear going to learn how to get cursor position in screen coordinates. This example is done with Code::Blocks, but can be run on different platforms with little/no modification.
In this post we are going to learn an OpenGL Code Blocks Example of determining the cursor posit…