Changing mouse cursors

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…

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:
[b]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…[/b]

Thanks, your the man!

Dont suppose you know how to define your own cursors at all do you?

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?

How can you hide the cursor?

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).]