Jump to content
  • Advertisement

Archived

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

Neen10do

ID3DXSPRITE as interface?

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

i know that the d3dxsprite interface has the ability to use LPDIRECTDRAWSURFACE7 and copy them to a direct3d device. my question is this. because it is using dd surfaces, is it any faster than directdraw? also, since it is an interface, i shouldnt have one of them in each sprite object, should i? it was designed to send the sprite information to the interface, and batch sprit print outs with 1 inteface?

Share this post


Link to post
Share on other sites
Advertisement
ID3DXSprite is not a sprite, it is an interface that renders sprites. You''re much better off learning how to do textured quads, at least then you gain a basic understanding of how to work d3d.

Share this post


Link to post
Share on other sites
that would take a really long time to develop a working, animating sprite class that way. i know that i would be better off, but thats not what im looking for right now. i want the easyness of 2d, but the speed of 3d and im going th use d3dxsprite, my question is that because you can pass different surfaces in it, do i only need 1 interface for the whole game, or should i have oen for each sprite?

Share this post


Link to post
Share on other sites
The ID3DXSprite contains a few bug/features which are unwanted.

Write your own....

Share this post


Link to post
Share on other sites
Not to mention that d3dxsprite is slow! I would also recommend writing your own with textured quads. It''s worth it just for the experience it will give you.

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.

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!