Part of the Khronos Group

The Industry's Foundation for High Performance Graphics

from games to virtual reality, mobile phones to supercomputers

Results 1 to 2 of 2

Thread: Convert windows mouse coordinates to opengl coordinates

  1. #1
    Junior Member Newbie
    Join Date
    Nov 2013

    Convert windows mouse coordinates to opengl coordinates

    Currently I am trying to click and drag drawings around in my opengl window however I don't know how to convert to opengl coordinates. I'm making a windows application so I don't want to use external libraries such as glut so I'll learn how to do this in c++. I'm currently getting the mouse position GET_X_LPARAM(lparam), GET_Y_LPARAM(lparam).

    Can anyone help?

  2. #2
    Senior Member OpenGL Pro
    Join Date
    Jan 2012
    If you don't want to use libraries (not sure why glm is operating system independant) then you have to reverse this logic

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts