New debug_ui that shows perf data, other debug info, and allows spawning enemies.
This commit is contained in:
parent
4f090159ab
commit
07ce8a4148
12 changed files with 50 additions and 87 deletions
|
@ -4,9 +4,11 @@
|
|||
#include <SFML/System/Clock.hpp>
|
||||
#include "stats.hpp"
|
||||
#include "overlay_ui.hpp"
|
||||
#include "debug_ui.hpp"
|
||||
#include "raycaster.hpp"
|
||||
#include "camera.hpp"
|
||||
#include <optional>
|
||||
#include "guecs.hpp"
|
||||
|
||||
namespace gui {
|
||||
|
||||
|
@ -18,7 +20,6 @@ namespace gui {
|
|||
};
|
||||
bool $show_level = false;
|
||||
bool $needs_render = true;
|
||||
Stats $stats;
|
||||
sf::Clock $clock;
|
||||
sf::RenderWindow& $window;
|
||||
GameLevel $level;
|
||||
|
@ -30,8 +31,7 @@ namespace gui {
|
|||
|
||||
void mouse(int x, int y);
|
||||
void debug();
|
||||
void draw_stats();
|
||||
void draw_blood();
|
||||
void render_debug();
|
||||
|
||||
void plan_rotate(int dir);
|
||||
bool play_rotate();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue