how to make a rect.

Started by
13 comments, last by 31337noob 18 years, 3 months ago
As a start, create 6 vertices which form 2 primitives. Simple as heck. (you should have 2 duplicates).

If you're feeling more up to a challange, I guess using just 4 verts and an index buffer with 6 indices would be faster, by a bit.
Sirob Yes.» - status: Work-O-Rama.
Advertisement
i want a 2d box not 3d just to let you now.
Quote:Original post by sirob
As a start, create 6 vertices which form 2 primitives. Simple as heck. (you should have 2 duplicates).

If you're feeling more up to a challange, I guess using just 4 verts and an index buffer with 6 indices would be faster, by a bit.


will this make a 2d box
Yeah, I think you need to have a look at the Forum FAQ. It has a LOT of beginner information, including how to draw a square.

Hope this helps.
Sirob Yes.» - status: Work-O-Rama.
i will just use a sprite and strech it.

This topic is closed to new replies.

Advertisement