Sign in to follow this  

Creating D3DXSPRITE functionality..

Recommended Posts

I have some questions as to how the D3DXSPRITE may have been implemented.. ..basically how to created a usable sprite renderer.. since drawing calls are made by sending in a RECT for the source of the texture to draw.. it made me thing that they were using CopyRect()... but.. you can rotate and scale the sprite and i dont think you can do that with CopyRect().. and I think I remember reading some were that it uses textured quads... so how about texture transofmations... creating a quad the size of the texture and applying transforms based on the size of the srcRect, and rotation passed in? - or is that to cpu expensive, if you are going to draw a lot of sprites also I know the D3DXSPRITE supports alpha blending.. but can you change the way they are blended to make it suitable for a particle effect? thanks ;P

Share this post

Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this