Sign in to follow this  
phil67rpg

drawing square

Recommended Posts

well I am studying the  directxtutorial.com web site, I am doing the exercises at the back of the chapters, I have a small question how do I change a triangle into a square in runtime.let  me know if you need code,

Share this post


Link to post
Share on other sites

This is a repost of the question you asked here:

http://www.gamedev.net/topic/649161-direct-x9-game/#entry5103011

 

Please don't do this.  It makes it hard for everyone involved.

 

Anyways, despite BeerNutts being right, you will want to look into transformations.  This will require knowledge of matrices and matrix math (even for 2D).  This should get you started: http://www.willamette.edu/~gorr/classes/GeneralGraphics/Transforms/transforms2d.htm

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