ID3DXSPRITE as interface?
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?
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.
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?
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.
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement