SHARE
TWEET

Untitled

a guest Aug 15th, 2018 31 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #include <SDL2/SDL.h>
  2.  
  3. int main() {
  4.     if(SDL_Init(SDL_INIT_VIDEO) < 0) {
  5.         printf("SDL init failed: %s\n", SDL_GetError());
  6.         return 0;
  7.     }
  8.  
  9.     SDL_Window* window;
  10.     window = SDL_CreateWindow("n/a", SDL_WINDOWPOS_UNDEFINED, SDL_WINDOWPOS_UNDEFINED, 1280, 720, SDL_WINDOW_SHOWN);
  11.  
  12.     SDL_VideoQuit();
  13.     SDL_Quit();
  14.  
  15.     return 0;
  16. }
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
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top