holesome/src/game/game_factory.hpp

21 lines
517 B
C++

#ifndef HOLESOME_GAME_FACTORY_HPP
#define HOLESOME_GAME_FACTORY_HPP
#include <string>
#include <memory>
#include "game.h"
class GameFactory
{
public:
static std::shared_ptr<Game> createWindowed(const std::string &title, int width = 960, int height = 540);
static std::shared_ptr<Game> createFullscreen(const std::string &title);
private:
static sf::ContextSettings getAdditionalSettings();
static void applyAdditionalWindowConfig(sf::RenderWindow *window);
};
#endif //HOLESOME_GAME_FACTORY_HPP