Further cleaning of the renderer.
This commit is contained in:
parent
fd8180bc61
commit
24b1e4a500
2 changed files with 21 additions and 21 deletions
|
@ -5,6 +5,7 @@
|
|||
#include <SFML/Window.hpp>
|
||||
#include <SFML/System.hpp>
|
||||
#include <SFML/Graphics.hpp>
|
||||
#include <SFML/Graphics/Rect.hpp>
|
||||
#include "point.hpp"
|
||||
#include <codecvt>
|
||||
#include "ansi_parser.hpp"
|
||||
|
@ -37,6 +38,8 @@ struct SFMLRender {
|
|||
sf::Font $font;
|
||||
sf::Texture $font_texture;
|
||||
sf::Glyph $base_glyph;
|
||||
sf::Sprite $bg_sprite;
|
||||
sf::FloatRect $bg_bounds;
|
||||
Canvas& $canvas;
|
||||
Screen& $map_screen;
|
||||
Screen& $screen;
|
||||
|
@ -55,6 +58,7 @@ struct SFMLRender {
|
|||
sf::Color color(Value val);
|
||||
sf::Sprite &get_text_sprite(wchar_t tile);
|
||||
bool resize_map(int new_size);
|
||||
void render_text(std::string &text, float x, float y);
|
||||
void draw_main_ui();
|
||||
void draw_screen(bool clear=true, float map_off_x=0.0f, float map_off_y=0.0f);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue