Source

pyGAP / game / src / main / main_x11.cpp

#include "game/game_x11.h"
#include "game/game_loop_sample.h"
#include "common/log.h"

#include <cstdio>

int main()
{
#if defined(DEBUG)
    common::Log* log_ = common::Log::get(__FUNCTION__);
#endif
    LOG("starting game...\n");

    game::GameLoopSample game_loop;
    game::GameX11 *game;
    game = new game::GameX11(&game_loop);

    game->run();

    delete game;

#if defined(DEBUG)
    common::Log::clear();
#endif

    return 0;
}