blob: a0d17c895abfd332837de78eee0d6aec2744c054 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
#include "titleState.h"
#include <SFML/Graphics.hpp>
TitleState::TitleState(StateStack &stack, State::Context context)
: State(stack, context)
{
}
void TitleState::update(sf::Time dt){
}
void TitleState::render(){
sf::RectangleShape rectangle;
rectangle.setSize(sf::Vector2f(100, 50));
rectangle.setOutlineColor(sf::Color::Red);
rectangle.setOutlineThickness(5);
rectangle.setPosition(10, 20);
context_.window->draw(rectangle);
}
void TitleState::handleEvent(const sf::Event &event){
}
|