A bit more cleanup before I redesign the renderer.
This commit is contained in:
parent
9397af2a11
commit
35ef1e786d
2 changed files with 15 additions and 5 deletions
11
render.hpp
11
render.hpp
|
@ -50,4 +50,15 @@ struct SFMLRender {
|
|||
sf::Sprite &get_text_sprite(wchar_t tile);
|
||||
bool resize_map(int new_size);
|
||||
void draw_screen(bool clear=true, float map_off_x=0.0f, float map_off_y=0.0f);
|
||||
|
||||
bool poll_event(sf::Event &event) {
|
||||
return $window.pollEvent(event);
|
||||
}
|
||||
|
||||
void close() { return $window.close(); }
|
||||
|
||||
bool is_open() { return $window.isOpen(); }
|
||||
|
||||
int font_size() { return $map_font_size; }
|
||||
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue