Archived

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

Neen10do

ID3DXSPRITE as interface?

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