Advertisement
Guest User

Untitled

a guest
Jun 27th, 2017
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.36 KB | None | 0 0
  1.     while(!quit)
  2.     {
  3.         prevTime = curTime;
  4.         curTime = timeGetTime();
  5.         deltaTime = curTime - prevTime;
  6.         if(deltaTime > 20)
  7.             deltaTime = 17;
  8.         timestep = deltaTime/freq;
  9.  
  10.         while(SDL_PollEvent(&bah))
  11.         {
  12.             if(bah.type == SDL_QUIT || (bah.type == SDL_KEYDOWN && bah.key.keysym.sym == SDLK_ESCAPE))
  13.             {
  14.                 quit = true;
  15.             }
  16.         }
  17.  
  18.         ....
  19.         ....
  20.  
  21.     }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement