Jump to content
  • Advertisement
Sign in to follow this  
Stoiko

X hardware true color cursors

This topic is 4808 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

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
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?

Share this post


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

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!