Jump to content
  • Advertisement
Sign in to follow this  
godsenddeath

different shapes in DX9

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

ok i just learned how to make a textured quad, and i just wrote a small tiling engine drawing a quad, then translating, then drawing etc.. i was wondering, if i wanted to have a character move across the screen, which would be the most accepted practice.. re-texturing, scaling and translating the same quad? or buld another quad? and another question while i'm at it, sometimes when i change the default co-ords of my quad, the last vertex disappears and it becomes a triangle, is there something i'm doing wrong?

Share this post


Link to post
Share on other sites
Advertisement
here's the code from the quad that keeps changing to a triangle

CUSTOMVERTEX t_vert[] =
{

{3.0f,3.0f,-90.0f,0xffffff,1,0,},
{0.0f,3.0f,-90.0f,0xffffff,0,0,},
{0.0f,0.0f,-90.0f,0xffffff,1,1,},
{3.0f,0.0f,-90.0f,0xffffff,0,1,},
};



EDIT: please disregard teh question about the quad showing up as a triangle, i realized my error in the order of the vertecies

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.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!