SHARE
TWEET

Untitled

a guest Nov 24th, 2017 66 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #include <SDL2\SDL.h>
  2. #include <iostream>
  3.  
  4. int main( int argc, char* args[] )
  5. {
  6.   SDL_Window     *window;
  7.  
  8.   SDL_Init(SDL_INIT_VIDEO);
  9.  
  10.   window = SDL_CreateWindow("SDL2 Window", 100, 100, 640, 480, 0);
  11.  
  12.   if(window==NULL)
  13.   {  
  14.     printf("Could not create window: %s\n", SDL_GetError());
  15.     return 1;
  16.   }
  17.  
  18.   SDL_Delay(3000);
  19.  
  20.   SDL_DestroyWindow(window);
  21.    
  22.   SDL_Quit();
  23.  
  24.   return 0;  
  25. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top