Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <string>
- #include <sstream>
- #include <stdlib.h>
- #include <stdio.h>
- #include <ctime>
- #include <SDL2/SDL.h>
- #include <GL/glew.h>
- #include "map.h"
- using namespace std;
- int main(int argc, char **argv)
- {
- SDL_Init(SDL_INIT_VIDEO | SDL_INIT_EVENTS);
- SDL_Window *window = SDL_CreateWindow("Tycoon Example",SDL_WINDOWPOS_UNDEFINED,SDL_WINDOWPOS_UNDEFINED,640,480,SDL_WINDOW_OPENGL);
- SDL_GLContext glcontext = SDL_GL_CreateContext(window);
- if (window == NULL)
- {
- printf("Could not create window: %sn", SDL_GetError());
- return 1;
- }
- Game_Map world = Game_Map(20,20); //Ignore this. It is class that is included in map.h
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement