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.
how to make a rect.
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.
Hope this helps.
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement