Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

3 Dimensional Chat / mouse position in openGL

Author
Message
yabelson
17
Years of Service
User Offline
Joined: 1st Dec 2002
Location:
Posted: 1st Dec 2002 21:22
hello.

i need to build 4 cubes,one on top of the other.
when i press on one of the cubes,its starts spinning left or right,depends on what button of the mouse i press.
if i press somewhere else in the window,all four cubes rotate.
i finished the cube building,and they spin right/left when i press on them.

now i get to the problem:
i need the function that allows me to find the mouses coordinates when it is presses,and assign functions to it.

can you help me?
i can find it in msdn as well...

thanks in advanced to all who help...
yair
indi
17
Years of Service
User Offline
Joined: 26th Aug 2002
Location: Earth, Brisbane, Australia
Posted: 2nd Dec 2002 07:04
Im not sure if this is the place for Open GL code but here is a DB version u could adapt to your requirements.



Megaman X
17
Years of Service
User Offline
Joined: 21st Oct 2002
Location: Sweden
Posted: 2nd Dec 2002 07:15
When I grow up I wanna code like indi does I will use ur code for a thing I'm trying if u dont mind indi

I don't suffer from insanity, I enjoy every minute of it.
-- Rogue
indi
17
Years of Service
User Offline
Joined: 26th Aug 2002
Location: Earth, Brisbane, Australia
Posted: 2nd Dec 2002 07:38

Login to post a reply

Server time is: 2020-08-15 12:36:50
Your offset time is: 2020-08-15 12:36:50