I have an interface where I'm scrolling across a bunch of squares. When a user clicks a button, I need to draw a selection box around the central square.
For this, I need the current screen coordinates. In order to get that I try using the command,
However, on compiling it says GL_VIEWPORT not recognized. Any help would be appreciated...