document.write('
Data hosted with ♥ by Pastebin.com - Download Raw - See Original
  1.  
  2. int main(int argc, char** argv){
  3.  
  4. if (SDL_Init(SDL_INIT_VIDEO) != 0) {
  5.  printf("Não foi possível iniciar a SDL: %s\\n", SDL_GetError());
  6.  return 1;
  7. }
  8.  
  9. SDL_Surface *screen;
  10.  
  11. screen = SDL_SetVideoMode(640, 480, 16, SDL_DOUBLEBUF | SDL_FULLSCREEN);
  12. if (screen == NULL) {
  13.  printf("Não foi possível escolher o modo de video %s\\n", SDL_GetError());
  14.  return 1;
  15. }
  16.  
  17. atexit(SDL_Quit);
  18.  
  19. printf("Video iniciado e programa terminado");
  20.  
  21. SDL_Delay(1000);
  22.  
  23. return 0;
  24. }
');