Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
Fetching contributors…

Cannot retrieve contributors at this time

42 lines (30 sloc) 0.617 kb
#ifndef ENGINE_H
#define ENGINE_H
#include <SFML/Graphics.hpp>
#include "Util.h"
#if __APPLE__
#include "ResourcePath.hpp"
#else
std::string resourcePath(void) { return ""; }
#endif
class Engine
{
public:
Engine();
~Engine();
void run();
private:
int screenWidth;
int screenHeight;
int screenBitsPerPixel;
std::string screenTitle;
sf::Color backgroundColor;
bool showSampleContent;
sf::RenderWindow *window;
void initializeGraphics();
void checkEvents();
void resetRandom();
void setupScreen();
void setupBackgroundColor();
};
#endif // ENGINE_H
Jump to Line
Something went wrong with that request. Please try again.