Sign in to follow this  
godsenddeath

different shapes in DX9

Recommended Posts

godsenddeath    182
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
godsenddeath    182
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

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