Jump to content
  • Advertisement

Archived

This topic is now archived and is closed to further replies.

overlord

setting a custom cursor with dx8

This topic is 6507 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

As the subject say, i wanna chage the cursor for a game. There is the function IDirect3DDevice8::SetCursorProperties, but it takes a IDirect3DSurface8* as a parameter, how can i draw a bitmap into a surface to pass as a parameter?... or is there another way? Thanks for your answer I really like this site!

Share this post


Link to post
Share on other sites
Advertisement
There is a D3DX function that will load a graphic onto a Surface. Can''t remember offhand what it is but probably something like D3DXCreateSurfaceFromFile().

You then need to do a ShowCursor() and a SetCursorPosition() (from IDirect3DDevice8).

Share this post


Link to post
Share on other sites

  • 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!