Guest User

Untitled

a guest
May 24th, 2018
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.30 KB | None | 0 0
  1. #include "SDL/SDL.h"
  2.  
  3. int main(int argc, char *argv[])
  4. {
  5.  bool done = false;
  6.  SDL_Surface *Screen = NULL;
  7.  Screen = SDL_SetVideoMode(640,480,32,SDL_SDL_SWSURFACE);
  8.  
  9.  while(!done)
  10.  {
  11.  while(SDL_PolLEvent(&event))
  12.  {
  13.  switch(event.type)
  14.  {
  15.  case SDL_QUIT:
  16.  return 0;
  17.  break;
  18.  }
  19.  }
  20.  }
  21. }
Add Comment
Please, Sign In to add comment