Sign in to follow this  
Stoiko

X hardware true color cursors

Recommended Posts

Does anyone knows how to load a true color bitmap into hardware X cursor? What cursors do you use in your X Opengl apps?

Share this post


Link to post
Share on other sites
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?

Share this post


Link to post
Share on other sites
Sign in to follow this