Added direct theme support and will slowly move more things into this struct for configuring the look.
This commit is contained in:
parent
b9deb3a0de
commit
a18d60dcb0
9 changed files with 48 additions and 67 deletions
|
@ -2,14 +2,8 @@
|
|||
#include "guecs/sfml/backend.hpp"
|
||||
|
||||
namespace guecs {
|
||||
static Backend* BACKEND = nullptr;
|
||||
|
||||
using std::make_shared;
|
||||
|
||||
void init(Backend* backend) {
|
||||
BACKEND = backend;
|
||||
}
|
||||
|
||||
void Textual::init(lel::Cell &cell, shared_ptr<sf::Font> font_ptr) {
|
||||
dbc::check(font_ptr != nullptr, "you failed to initialize this WideText");
|
||||
if(font == nullptr) font = font_ptr;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue