Skip to content

Instantly share code, notes, and snippets.

@feliwir
Created June 12, 2015 09:33
Show Gist options
  • Save feliwir/b6d0c91ede85854e2a84 to your computer and use it in GitHub Desktop.
Save feliwir/b6d0c91ede85854e2a84 to your computer and use it in GitHub Desktop.
#pragma once
#include <SFML/Graphics.hpp>
class Engine
{
public:
Engine();
~Engine();
void Run();
private:
sf::RenderWindow m_window;
};
#include "Engine.hpp"
Engine::Engine()
{
m_window.create(sf::VideoMode(800, 600), "SAGE", sf::Style::Default, sf::ContextSettings(8, 24, 2, 3, 0, sf::ContextSettings::Core));
}
Engine::~Engine()
{
}
void Engine::Run()
{
while (m_window.isOpen())
{
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment