Mousepos in a 2D scene?

Started by
1 comment, last by Daaark 18 years, 6 months ago
Hello Im a OpenGL beginner and now i search a way to see the mousepos x and y in scene. How i can translate the mousepos wat i have from GetCursorPos() ? Thanks an d sorry for my bad english regards, Nico
Advertisement
Look up gluProject and gluUnProject.
-----BEGIN GEEK CODE BLOCK-----Version: 3.12GCS/M/S d->+(++) s+: a19? C++++ UL++ P+++ L+ !E W+++ N+ o++ K? w!O M-- V? !PS PE Y+ PGP t++ 5+++ X R tv+> b+(++)>+++ DI+++>+++++ D++G e>++++ h! r y?------END GEEK CODE BLOCK------
If it's a 2d scene, you can do

GetCursorPos() and then you need to do ScreenToClient()

This topic is closed to new replies.

Advertisement