holesome/src/main.cpp

18 lines
386 B
C++
Raw Normal View History

2023-04-26 13:58:10 +02:00
#include <SFML/Graphics.hpp>
#include <iostream>
2023-04-27 23:05:19 +02:00
#include "util/easylogging++.h"
#include "game/game.h"
#include "primitives/circle_object.h"
2023-04-26 13:58:10 +02:00
2023-04-27 23:05:19 +02:00
INITIALIZE_EASYLOGGINGPP
2023-04-26 13:58:10 +02:00
2023-04-27 23:05:19 +02:00
int main(int argc, char *argv[]) {
START_EASYLOGGINGPP(argc, argv);
2023-04-26 13:58:10 +02:00
2023-04-27 23:05:19 +02:00
auto game = Game(Renderer::createFullscreen("Holesome"));
2023-04-26 13:58:10 +02:00
2023-04-27 23:05:19 +02:00
game.addGameObject(new CircleObject(50, sf::Color::Red));
2023-04-26 13:58:10 +02:00
2023-04-27 23:05:19 +02:00
game.run();
2023-04-26 13:58:10 +02:00
}