Jump to content

  • Log In with Google      Sign In   
  • Create Account


#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