Advertisement
JiiCeii

SDL define

Apr 29th, 2011
186
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.26 KB | None | 0 0
  1. #define BITS 32
  2. #define SDL_createWindow(name, w, h, icon) \
  3.     SDL_SetVideoMode(w, h, BITS, SDL_HWSURFACE | SDL_DOUBLEBUF); \
  4.     SDL_WM_SetCaption(name, NULL); \
  5.     SDL_WM_SetIcon(icon, NULL);
  6.  
  7. SDL_Surface *screen = SDL_createWindow("Program", 800, 400, NULL);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement