Jump to content
  • Advertisement
Sign in to follow this  
phil67rpg

drawing square

This topic is 2099 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

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
Advertisement

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
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!