Thanks for your quick reply. In what coordinate the cursor.x and cursor.y are defined? Suppose that my mouse position is located at (200, 200), how the cursor.x and cursor.y are calcuated?
Does glTranslate() have to be called before glOrtho()?
hi, i’m in perspective view, dragging the mouse i draw a square with the cursor.x and y saved.
i don’t want to change the perspective matrix, but use only glscale and gltranslate to move and scale the square at the center of the video…it is possible?
thanks