Commit graph

13 commits

Author SHA1 Message Date
Zed A. Shaw
e88179b788 Small mistake. Didn't maintain the texture pointer in the sprite so it could go out of scope and crash with use after free. 2026-03-11 07:39:50 -04:00
Zed A. Shaw
e8c178db6f Changing from RenderWindow to RenderTarget so the GUI can be rendered into a texture for zooming/saving. 2025-10-31 11:05:29 -04:00
Zed A. Shaw
4c019048d0 Making Icons a thing again since it's convenient. 2025-07-23 13:49:16 -04:00
Zed A. Shaw
9e9b9620c9 Major refactoring but now centering text and sprites works. See Issue #16 for why only those and not anything else yet. 2025-07-23 12:48:29 -04:00
Zed A. Shaw
3752522597 Fixed Icon vs. Sprite and now Icon is just a subclass of Sprite. Closes #12. 2025-07-22 17:11:02 -04:00
Zed A. Shaw
a22342cd7e Now Sprite can do either aspect_ratio scaling or stretching and Icon is just a subclass. 2025-07-22 16:22:05 -04:00
Zed A. Shaw
5a7c096b52 Fix up the backend so it has sane names like get_sprite and get_icon, then implemented a guecs::Icon for icons. Those don't scale and typically have other properties different from a Sprite. 2025-07-22 12:59:10 -04:00
Zed A. Shaw
e1d61dc2c1 You can now set a sprite as a background in Background which will simplify a lot of games that just place sprites over a single image. 2025-06-01 22:52:54 -04:00
Zed A. Shaw
4d71f552aa Refactoring the GUECS UI::render and the components so that it's just calling a .render on each one. This will then let me allow registering any components people want. 2025-05-12 00:09:21 -04:00
Zed A. Shaw
a9e219ea96 Clicker now moves when you click him. 2025-05-11 16:08:55 -04:00
Zed A. Shaw
adc192c6dc Removed dbc and replaced with plain asserts everywhere. 2025-05-10 10:53:53 -04:00
Zed A. Shaw
a18d60dcb0 Added direct theme support and will slowly move more things into this struct for configuring the look. 2025-05-09 11:20:22 -04:00
Zed A. Shaw
3bc05ad164 Move everything under the guecs/ directory in src/ so that it meshes better with other projects. 2025-05-08 11:20:00 -04:00
Renamed from include/sfmlbackend/components.hpp (Browse further)