Help creating checkerboard

Started by
0 comments, last by Ravuya 14 years, 5 months ago
I have just started working with directx, but have used c++ for years. I want to create a program that generates a full checkerboard pattern on the screen then alterates between black and white by flipping ( an alternating checkerboard pattern at some set speed. After looking at many tutorials, I am need of asking for help. I have created 1 Black and White Check Pair by using 4 triangles and g_pd3dDevice->DrawPrimitive( D3DPT_TRIANGLELIST, 0, 4 ); There has to be an easier way I can do the entire screen without setting vertices for each and every Check on the board. Can i "copy" the pair and just paste it across and down the board? Then I will create another image but have the white/blacks reversed. Can someone help me out, even a flow chart of what I should do will help me alot, so I knew what tutorials to search for. Thanks alot
Advertisement
Please don't cross post. I've retained your other thread, as it seems to have a reply.

This topic is closed to new replies.

Advertisement