Advertisement
Guest User

Untitled

a guest
Apr 18th, 2014
47
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.69 KB | None | 0 0
  1. #include <iostream>
  2. #include <string>
  3. #include <sstream>
  4. #include <stdlib.h>
  5. #include <stdio.h>
  6. #include <ctime>
  7.  
  8. #include <SDL2/SDL.h>
  9. #include <GL/glew.h>
  10.  
  11. #include "map.h"
  12.  
  13. using namespace std;
  14.  
  15. int main(int argc, char **argv)
  16. {
  17. SDL_Init(SDL_INIT_VIDEO | SDL_INIT_EVENTS);
  18. SDL_Window *window = SDL_CreateWindow("Tycoon Example",SDL_WINDOWPOS_UNDEFINED,SDL_WINDOWPOS_UNDEFINED,640,480,SDL_WINDOW_OPENGL);
  19. SDL_GLContext glcontext = SDL_GL_CreateContext(window);
  20.  
  21. if (window == NULL)
  22. {
  23. printf("Could not create window: %sn", SDL_GetError());
  24. return 1;
  25. }
  26.  
  27. Game_Map world = Game_Map(20,20); //Ignore this. It is class that is included in map.h
  28.  
  29. return 0;
  30. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement