Jump to content
  • Advertisement
Sign in to follow this  
ramtaajogi

Help creating checkerboard

This topic is 3126 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

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

Share this post


Link to post
Share on other sites
Advertisement

This topic is 3126 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Guest
This topic is now closed to further replies.
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!