Mikekan13 Posted September 13, 2010 Author Share Posted September 13, 2010 Is it ok to use DrawPrimitiveUP, Or should I be using something else? Link to comment Share on other sites More sharing options...
westin444 Posted September 13, 2010 Share Posted September 13, 2010 I'm no expert, but it really matters what your wanting to do.heres is one person's opinion:> The sprite class in DirectX8 has more functionality behind it than all of DirectDraw in DX7\. It has hardware accelerated rotation, scaling and alpha blending. It has easy to use color modulation. If you are doing all 2D then there is absolutly NO reason to go through the bother of the DrawPrimitive approach. You gain nothing by that method and you introduce needless complications which means more dev time and more bugs.> The D3DXSprite is not meant to be a "sprite class". It is useful as a Blitter. You make your own sprite class (using textures as the image data) and use D3DXSprite.Draw to blit your sprites.But I think for tilemaps DrawPrimitiveUP is fine. Link to comment Share on other sites More sharing options...
MarkMorris Posted September 13, 2010 Share Posted September 13, 2010 DrawPrimitiveUP is fine for everything. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now