All Content
Blogs
Forums
News
Tutorials
Log In
Sign Up
Login
Username / Email
Password
Remember me
Forgot password?
Login
or
Don't have a GameDev.net account?
Sign up
Forgot your password?
Email Address
Reset Password
Please contact us if you have any trouble resetting your password.
Home
Blogs
Forums
News
Portfolios
Projects
Tutorials
27
users logged in
New?
Learn about game development
.
Before posting, review our
community guidelines
.
Follow Us
Chat in the
GameDev.net Discord!
Mastodon
Back to NeHe Productions
Mousepos in a 2D scene?
NeHe Productions
Affiliates
Started by
nicolaus
October 09, 2005 08:20 AM
1
comment, last by
Daaark
18 years, 6 months ago
nicolaus
122
Author
October 09, 2005 08:20 AM
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
Cancel
Save
Advertisement
overflowed_
194
October 09, 2005 08:23 AM
Look up gluProject and gluUnProject.
Cancel
Save
-----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------
Daaark
3,556
October 09, 2005 08:26 AM
If it's a 2d scene, you can do
GetCursorPos() and then you need to do ScreenToClient()
Cancel
Save
Twitter
::
DeviantArt
This topic is closed to new replies.
Advertisement
Popular Topics
How do you manage yourself and your time as years pass on?
GDNet Lounge
Too many managers?
General and Gameplay Programming
Do your part to stop global warming and climate change
GDNet Lounge
The promise of freedom in story games
Game Design and Theory
Facebook Ads for sales on steam, does it work?
Games Business and Law
Understanding the wavy-like shape in alpha-testing magnification for text rendering
Graphics and GPU Programming
Advertisement
Recommended Tutorials
How To Create Seamless Audio Loops
Music and Sound FX
Unity DOTS Life Tutorial entities 0.4.0 preview.10 #6 ECS unit testing : Update Entities 0.8.0
Engines and Middleware
Windows' SEH and C++ Exception Handling
General and Gameplay Programming
MAME emulator disease: memset()
General and Gameplay Programming
Polygon Sorting
Graphics and GPU Programming
Reticulating splines
About GameDev.net
Community Guidelines
Terms of Service
Privacy Policy
Contact Us
Copyright (c) 1999-2024 GameDev.net, LLC
Back to Top