#include #include #include SDL_Window *window = NULL; SDL_Surface *renderSurface = NULL; SDL_GLContext mainGLContext = NULL; bool gameRunning = true; void logic(); void render(); unsigned int millis(void){ std::chrono::system_clock::time_point now=std::chrono::system_clock::now(); return std::chrono::duration_cast(now.time_since_epoch()).count(); } int main(int argc, char *argv[]){ //runs start-up procedures if(SDL_Init(SDL_INIT_VIDEO)){ std::cout << "SDL was not able to initialize! Error: " << SDL_GetError() << std::endl; return -1; } atexit(SDL_Quit); if(!(IMG_Init(IMG_INIT_PNG|IMG_INIT_JPG)&(IMG_INIT_PNG|IMG_INIT_JPG))){ std::cout<<"Could not init image libraries!\n"<