Commit Graph

12 Commits

Author SHA1 Message Date
564512225f [Add] Beginning of login UI and db persistance. 2025-10-05 19:52:17 +01:00
d37f632344 [Refactor] Implement batched shape rendering.
This mirrors the previous refactor of the TextRenderer. All calls to
draw_rect and draw_triangle now buffer vertex data (position and color).
A begin()/flush() system is introduced to manage batching.
2025-10-05 00:44:23 +01:00
caa482a7a0 [Add] Implement delta time game loop. 2025-10-04 21:28:16 +01:00
c3316b3da1 [Refactor] Implement batched text rendering.
Overhauls text rendering to improve performance.

Renderer was really ineffient, sending a separate GPU draw call for
every character rendered. This created a bottleneck, especially with
text-heavy UI stuff like the wallpaper.

- The 'TextRenderer' now generates a single texture atlas for all font
  glyhs on load so all characters share a single texture.
- 'begin()' / 'flush()' was added to the 'TextRenderer'. Calls to
  'render_text' now buffer vertex data (position, texture coords,
colour) instead of drawing immediately. A single 'flush()' call at the
end of a pass draws all buffered text in one draw call.
- A simple batching introduced some shitty visual layering bugs. to
  solve this, a staged flushing architecture has been implemented. Each
logical UI component is now responsible for managing its own rendering
passes, beginning and flushing text batches as needed to ensure correct
back-to-front layering.
2025-10-04 18:32:35 +01:00
9d2a2f4195 [Fix] Separate single-player and multiplayer ports. 2025-10-04 05:20:50 +01:00
a6e159f0da Menu bar for for text editor etc. 2025-10-03 23:56:30 +01:00
0e7f97ca81 [Refactor] Improve window buttons and fix state handling. 2025-09-28 15:37:15 +01:00
ea25cb6cc7 [Add] Taskbar and window management work
- Adds a taskbar that displays and manages open application windows
- close, minimise and restore functionality
- resizeable windows
- Refactored desktop event handling to manage window focus and render
  order
2025-09-28 14:12:11 +01:00
6876cbff95 [Add] Implement system boot sequence screen. 2025-09-28 03:10:12 +01:00
e72cc987ff [Add] Not your boring main menu. 2025-09-28 02:21:34 +01:00
b1bdb86b76 [Add] Implement screen manager state machine. 2025-09-28 00:09:26 +01:00
00e78cc2ba [Refactor] One GameState to rule them all!
Introduces a central GameState class to manage the client's lifecycle,
network connection and UI components. The Terminal has been demoted to a
pure UI widget and main has been simplified to a basic entrypoint as
they should be!
2025-09-27 18:07:01 +01:00