Sign in to follow this  
radiationz

c# direct3d sprite transformation problem

Recommended Posts

I am using an object from Sprite class and i want to draw and transform: sprite.Begin(); sprite.Transform=Matrix.Transformation2D(new Vector2(100, 100), 0f, new Vector2(0, 0), new Vector2(200, 200), 70f, Vector2(20, 20)); sprite.Draw2D(texture, new Point(0,0), 0f, new Point(0, 0), Color.White); sprite.End(); It draws the texture but no transformation occurs, any help will be appreciated, thnx.

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