Now using a simple text size grid system for laying out the GUI.
This commit is contained in:
parent
fda281be1d
commit
58a5a415ec
2 changed files with 37 additions and 15 deletions
|
@ -7,6 +7,9 @@
|
|||
constexpr int FPS=30;
|
||||
constexpr int X_DIM = 1920 / 2;
|
||||
constexpr int Y_DIM = 1080 / 2;
|
||||
constexpr int TEXT_SIZE = 48;
|
||||
constexpr int Y_LINES = 23;
|
||||
constexpr int X_ROWS = 48;
|
||||
|
||||
class SFMLGui {
|
||||
sf::ContextSettings settings;
|
||||
|
@ -31,7 +34,7 @@ public:
|
|||
void handle_events();
|
||||
void update_entities();
|
||||
|
||||
void write_text(sf::Vector2f position, const char *content);
|
||||
void write_text(int x, int y, const char *content);
|
||||
|
||||
void ImGui_setup();
|
||||
void ImGui_update();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue