Jump to content
  • Advertisement
Sign in to follow this  
phil67rpg

drawing square

This topic is 1678 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

I thought u were learning opengl?  Why back to DX9?  Why waste time using these low level api's anyway when ur clearly a beginner?

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

  • Advertisement
×

Important Information

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

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!