Guest User

Untitled

a guest
Apr 21st, 2018
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.57 KB | None | 0 0
  1. #include <SDL/SDL.h>
  2. #include <stdio.h>
  3. #include <stdlib.h>
  4.  
  5. int main(int argc, char *argv)
  6. {
  7. SDL_Surface *screen;
  8.  
  9. if (SDL_Init(SDL_INIT_VIDEO) != 0) {
  10. printf("Unable to intialze SDL: %s\n",SDL_GetError());
  11. return(1);
  12. }
  13. atexit(SDL_Quit);
  14.  
  15. screen = SDL_SetVideoMode(640, 480, 16, SDL_FULLSCREEN);
  16. if (screen == NULL) {
  17. printf("Unable to set video mode: %s\n",SDL_GetError);
  18. return(1);
  19. }
  20. printf("Success!\n");
  21. return(0);
  22. }
Add Comment
Please, Sign In to add comment