Add first version of SFMLController and View class

This commit is contained in:
manzerbredes 2015-05-03 14:19:30 +02:00
parent ddaf5ba3ba
commit ce3f721e16
9 changed files with 113 additions and 3 deletions

25
src/View/MainWindow.cpp Normal file
View file

@ -0,0 +1,25 @@
#include "MainWindow.hpp"
MainWindow::MainWindow(int width, int height, std::string title):
RenderWindow(sf::VideoMode(width,height), title),
skin()
{
//Define skin:
skin.push_back(sf::Color(250,248,239));
}
MainWindow::~MainWindow(){
}
void MainWindow::clearMW(){
RenderWindow::clear(skin.at(0));
}