Renderer now knows how to render panels as grid/text based on how the panel is configured.
This commit is contained in:
parent
f79e7638c0
commit
7cb03594a3
5 changed files with 30 additions and 31 deletions
|
@ -58,8 +58,8 @@ struct SFMLRender {
|
|||
bool resize_map(int new_size, Point &view_port);
|
||||
void render_grid(const std::wstring &text, float x, float y);
|
||||
void render_text(const std::wstring &text, float x, float y);
|
||||
void draw_text(Panel &panel);
|
||||
void draw_grid(Panel &panel, float map_off_x=0.0f, float map_off_y=0.0f);
|
||||
|
||||
void draw(Panel &panel, float x_offset=0.0f, float y_offset=0.0f);
|
||||
|
||||
bool poll_event(sf::Event &event) {
|
||||
return $window.pollEvent(event);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue