Created
June 12, 2015 09:33
-
-
Save feliwir/b6d0c91ede85854e2a84 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#pragma once | |
#include <SFML/Graphics.hpp> | |
class Engine | |
{ | |
public: | |
Engine(); | |
~Engine(); | |
void Run(); | |
private: | |
sf::RenderWindow m_window; | |
}; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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