PDA

View Full Version : Changing mouse cursors



Gobbo
05-07-2002, 05:57 AM
Does anybody know how to change the mouse cursor image depending on the location on the screen? I am developing a 3D modeller using C++ and OpenGL and dont really want to touch windows programming if i can help it.

I want to use the same trick as 3D Studio MAX and have a mouse cursor for rotation, translation etc...

nexusone
05-07-2002, 06:16 AM
If you are using GLUT, then you can use glutSetCursor. There is a selection of about 12 diffrent cursors to choose from.



Originally posted by Gobbo:
Does anybody know how to change the mouse cursor image depending on the location on the screen? I am developing a 3D modeller using C++ and OpenGL and dont really want to touch windows programming if i can help it.

I want to use the same trick as 3D Studio MAX and have a mouse cursor for rotation, translation etc...

Gobbo
05-07-2002, 06:53 AM
Thanks, your the man!

Gobbo
05-07-2002, 07:08 AM
Dont suppose you know how to define your own cursors at all do you?

nexusone
05-07-2002, 07:53 AM
I don't think you can change the glut cursors, but away around would be to make you own cursors by maping them to a quad, and have the quad follow the mouse.


Originally posted by Gobbo:
Dont suppose you know how to define your own cursors at all do you?

cix
05-09-2002, 02:05 PM
How can you hide the cursor?

nexusone
05-09-2002, 05:04 PM
The glutSetCursor function also provides an option to turn off the cursor.


Originally posted by cix:
How can you hide the cursor?



[This message has been edited by nexusone (edited 05-09-2002).]