Change Mouse-Pointer to image

hi,

i am participating in writing an interface and i want the mouse-pointer to change to an image when a button is pressed … how can i do this change??

thank you for your help …

depends on the OS.

in linux you can use XCreatePixmapCursor to create a new cursor and XDefineCursor to apply this cursor to a certain window.

and before someone else does it, i have to remark:

this is not an opengl related question…

in windows this is easy to change cursor if you’re using Win32 lib

check the MSDN out

thanx for your answers … i did not knew that this is not open gl related, because we are programming this interface in open gl … btw: we are using windows …