Advertisement
Guest User

Untitled

a guest
Aug 15th, 2018
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.34 KB | None | 0 0
  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. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement