Color is now in one nice location.
This commit is contained in:
parent
c8fa68815b
commit
b7002917c1
4 changed files with 21 additions and 34 deletions
|
@ -24,12 +24,6 @@ const wchar_t BG_TILE = L'█';
|
|||
const wchar_t UI_BASE_CHAR = L'█';
|
||||
const int BG_BOX_OFFSET=5;
|
||||
|
||||
enum class Value {
|
||||
BLACK=0, DARK_DARK, DARK_MID,
|
||||
DARK_LIGHT, MID, LIGHT_DARK, LIGHT_MID,
|
||||
LIGHT_LIGHT, WHITE, TRANSPARENT
|
||||
};
|
||||
|
||||
struct SFMLRender {
|
||||
sf::RenderWindow $window;
|
||||
int $map_font_size;
|
||||
|
@ -52,8 +46,6 @@ struct SFMLRender {
|
|||
// disable copy
|
||||
SFMLRender(SFMLRender &other) = delete;
|
||||
|
||||
sf::Color color(int val);
|
||||
sf::Color color(Value val);
|
||||
sf::Sprite &get_text_sprite(wchar_t tile);
|
||||
bool resize_map(int new_size, Point &view_port);
|
||||
void render_grid(const std::wstring &text, float x, float y);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue