Add first version of SFMLController and View class
This commit is contained in:
parent
ddaf5ba3ba
commit
ce3f721e16
9 changed files with 113 additions and 3 deletions
25
src/View/MainWindow.cpp
Normal file
25
src/View/MainWindow.cpp
Normal 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));
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue