Jump to content

  • Log In with Google      Sign In   
  • Create Account

Interested in a FREE copy of HTML5 game maker Construct 2?

We'll be giving away three Personal Edition licences in next Tuesday's GDNet Direct email newsletter!

Sign up from the right-hand sidebar on our homepage and read Tuesday's newsletter for details!


We're also offering banner ads on our site from just $5! 1. Details HERE. 2. GDNet+ Subscriptions HERE. 3. Ad upload HERE.


#ActualKhatharr

Posted 24 July 2013 - 05:52 AM

bool run = true;
while(run) {
  //update game
  while(PeekMessage(&msg,NULL,0,0,PM_REMOVE) > 0) {
    if(WM_QUIT == msg.message) {run = false;}
    TranslateMessage(&msg);
    DispatchMessage(&msg);
  }
}

#4Khatharr

Posted 24 July 2013 - 05:52 AM

bool run = true;
while(run) {
  //update game
  while(PeekMessage(&msg,NULL,0,0,PM_REMOVE) > 0) {
    if(WM_QUIT == msg.message) {run = false;}
    TranslateMessage(&msg);
    DispatchMessage(&msg);
  }
}

#3Khatharr

Posted 24 July 2013 - 05:51 AM

bool run = true;
while(run) {
  //update game
  while(PeekMessage(&msg,NULL,0,0,PM_REMOVE) > 0) {
    run = !(WM_QUIT == msg.message);
    TranslateMessage(&msg);
    DispatchMessage(&msg);
  }
}

#2Khatharr

Posted 24 July 2013 - 05:51 AM

bool run = true;
while(run) {
  //update game
  //render
  while(PeekMessage(&msg,NULL,0,0,PM_REMOVE) > 0) {
    run = !(WM_QUIT == msg.message);
    TranslateMessage(&msg);
    DispatchMessage(&msg);
  }
}

#1Khatharr

Posted 24 July 2013 - 05:50 AM

bool run = true;
while(run) {
  while(PeekMessage(&msg,NULL,0,0,PM_REMOVE) > 0) {
    run = !(WM_QUIT == msg.message);
    TranslateMessage(&msg);
    DispatchMessage(&msg);
  }
  //update game
  //render
}

PARTNERS