Hullo all, I'm working on converting and expanding my VB Tile Game into C++. The problem is that in VB I used BitBlt, but now I'm looking to use DirectX. My question is how do I set up an array to hold all the vertices for each tile.
My thoughts have been:
Use a Triangle Strip
So, for a 5 by 5 board:
SEE DIAGRAM 1 (BELOW)
There are 36 "Vertices", I was thinking that I would be able to just use a Triangle Strip of 36 Vertices, but I after thinking about it, I decided I'd need 4 vertices per tile:
SEE DIAGRAM 2 (BELOW)
But, my problem is that if it's a Strip, then vertices (3, 4, and 5) will make a rather useless triangle. So, I thought of something like...
SEE DIAGRAM 3 (ABOVE...I MEAN BELOW)
Which works rather well for a column (or row) if I turn off back-face culling, but, I run into problems when trying to slide over to the next column.
So, I'm wondering, what kinds of suggestions/methods have you guys used in the past when making a 2d-Tiled Board? Or just what ideas do ya have on it? Any insight is appreciated Thanks