Advertisement
Guest User

Untitled

a guest
Nov 24th, 2017
145
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.42 KB | None | 0 0
  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. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement