bettola/client/src/gfx
Ritchie Cunningham e7607e3fc0 [Refactor] Created UIRenderer for consistant coord system.
The UI codebase was suffering with complexity due to the need to
manually convert between two different coordinate systems:
- Top-down "screen coordinates" used by SDL for input and windowing.
- Bottom-up "GL coordinates" used by low-level renderers.

This was making layout calculations diffucult and is bug prone.

With this commit, I'm introducing a 'UIRenderer' abstraction layer that
wraps the low-level 'ShapeRenderer' and 'TextRenderer'. This is
responsible for centralising all coordinate system conversations.

All UI components has been refactored to use the 'UIRenderer' so the
entire UI code opeates exclusively in a single, top-down screen
coordinate system as one would expect.
2025-10-04 03:11:48 +01:00
..
shader.cpp [Refactor] More spring cleaning for the renderer. 2025-09-27 23:22:51 +01:00
shader.h [Add] Text rendering. 2025-09-20 03:16:59 +01:00
shape_renderer.cpp [Add] Taskbar and window management work 2025-09-28 14:12:11 +01:00
shape_renderer.h [Add] Taskbar and window management work 2025-09-28 14:12:11 +01:00
txt_renderer.cpp [Fix] Created get_text_width for menu button centering. 2025-10-02 23:45:56 +01:00
txt_renderer.h [Fix] Created get_text_width for menu button centering. 2025-10-02 23:45:56 +01:00
types.h [Refactor] Created UIRenderer for consistant coord system. 2025-10-04 03:11:48 +01:00