Original Post
🔒 Locked
Changing cursor image
Advertisement
Using Direct Draw, just hide the cursor, and put a sprite on the mouse coordinates, then you can even animate it, and it will be as fast as your graphic card can blit...
It''''s nice to be important, but it''''s more important to be nice.
It''''s nice to be important, but it''''s more important to be nice.
I implemented the cursor in our application, using Direct Input. If you acquire the mouse in FOREGROUND, EXCLUSIVE mode the widnows cursor will not be drawn, yet you can still poll DirectInput for the position of the mouse. When you get the position, you will need to draw a mouse texture to the screen. This should only require at most 2 triangles to accomplish and a tiny 16x16 or 32x32 texture. I''m using Renderware, so I used their 2D toolkit to accomplish this. If you''re not using a wrapper around Direct3D, then you will need to figure out how to display a texture in screen space.
Kressilac
Kressilac
Topic Locked
This topic has been locked by a moderator. New replies are not allowed.
Sign in to reply to this topic.
Advertisement