Original Post
🔒 Locked
Dialog Position
Advertisement
If you know the position of OpenGL's area in your main window then it shouldn't be any problem in transforming main window's cursor position to GL's cursor position:
CursorInGL.X = CursorInMainWindow.X - GL.Left ;
CursorInGL.Y = CursorInMainWindow.Y - GL.Top ;
GL.Left and GL.Top is in main window's coordinates.
V@T
CursorInGL.X = CursorInMainWindow.X - GL.Left ;
CursorInGL.Y = CursorInMainWindow.Y - GL.Top ;
GL.Left and GL.Top is in main window's coordinates.
V@T
Topic Locked
This topic has been locked by a moderator. New replies are not allowed.
Sign in to reply to this topic.
Advertisement