Advertisement Jump to content
Sign in to follow this  
InsaneBoarder234

Do I need more than one D3DXSprite object?

This topic is 4882 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.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!