Jump to content
  • Advertisement
Sign in to follow this  
InsaneBoarder234

Do I need more than one D3DXSprite object?

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

This is probably a stupid question but I'm working on my first game using Direct3D. Am I ok to use a single D3DXSprite object to draw all of my graphics (text, ~100 tiles and a maximum of ~100 animated sprites)? Would there be any drawbacks or advantages of using multiple D3DXSprite objects? Thanks very much!

Share this post


Link to post
Share on other sites
Advertisement
Quote:
Original post by Pipo DeClown
D3DXSprite is the object that renders the sprites. You need only one.
That is the prettiest reply I've seen in a long time [smile]

I'd guess that if you make two ID3DXSprite objects, you'll end up with two internal vertex buffers, which would actually make things even less efficient. I can't be bothered making a derived IDirect3DDevice9 to pass to D3DXCreateSprite to test this theory though :P

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!