aboutsummaryrefslogtreecommitdiffstats
path: root/src/main.cpp
blob: b6cde151c0896fab2ff64d234826ede76c357ade (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
#include "ariderconfig.hpp"
#include "game.hpp"

#include <GL/glew.h>

#include <exception>
#include <iostream>

int main()
{
    std::cout<<"Arider\nVersion: "<<ARIDER_MAJOR_VERSION<<"."<<ARIDER_MINOR_VERSION
	     <<"."<<ARIDER_PATCH_VERSION<<'\n';

    Game game;

    try
    {
	game.run();
    }
    catch(std::exception &e)
    {
	std::cerr<<"Error : "<<e.what()<<'\n';
    }
    catch(...)
    {
	std::cerr<<"Error : Exception occured\n";
    }

    return 0;
}