Exploring raycasters and possibly make a little "doom like" game based on it.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
raycaster/overlay_ui.hpp

24 lines
554 B

#pragma once
#include "levelmanager.hpp"
#include <SFML/Graphics/RenderWindow.hpp>
#include <SFML/Graphics/Font.hpp>
#include "guecs.hpp"
namespace gui {
class OverlayUI {
public:
guecs::UI $gui;
GameLevel $level;
TexturePack& $textures;
OverlayUI(GameLevel level, TexturePack& $textures);
void render();
void draw(sf::RenderWindow& window);
void click(int x, int y);
void show_damage(bool show);
void init_stats();
void draw_stats(std::string stats);
void close_stats();
};
}