Don't know about opengl. Can it access a serial port?
OpenGL is a graphics rendering language. It is not standalone software. The application that is using OpenGL for drawing could open the serial port that the Arduino is connected to, and send any data needed to the Arduino.
What the Arduino is going to do with the coordinates of the mouse on the screen is a mystery, of course.