X hardware true color cursors

Started by
0 comments, last by Mare 18 years, 7 months ago
Does anyone knows how to load a true color bitmap into hardware X cursor? What cursors do you use in your X Opengl apps?
Stoiko Todorov
Advertisement
Hi Stoiko,

If you are setting the cursor using xlib I don't believe you will be able to set the cursor colour depth higher than 2 colours. I know it's not what you asked for but if you do want to use xlib to draw the cursor you can use pixmaps and the function XCreatePixmapCursor().

You should be able to use a GC to convert from BMP to pixmap if you have need to do it on the fly rather than just a one off cursor (which would make more sense as a pixmap from the start obviously).

I haven't done enough openGL in Xlib to know how to load cursors in that so maybe loading the cursor using opengl might be an option?

This topic is closed to new replies.

Advertisement