Commit Graph

8 Commits

Author SHA1 Message Date
d10ce2552d Add new Center enum for center config 2024-03-02 14:45:22 +00:00
1d4de23391 Fix matrix transformation issues
This time, the issues should be fixed for good. Everything behaves as expected.
The only issue remaining is that of the text sprite not having the right size
2024-03-02 14:45:22 +00:00
f6e0619be0 Add sprite center configuration
For now, the center is juste defined by coordinates in a haphazard way,
this will need a proper implementation at some point
2024-03-02 14:45:22 +00:00
3a630fefaf Fix matrix transformation issues 2024-03-02 14:45:22 +00:00
d334ee8f98 Implement cpu-generated text sprite 2024-03-02 14:45:22 +00:00
c1e8fea84a Rework Mesh system
The mesh is now direclty handled by its corresponding sprite to
simplify things
2022-11-01 18:53:21 +01:00
2e326306d9 Clean up frame implementation
Sprites no longer need to handle the frame creation as it is fully
handled by the renderer itself. The fields order in the renderer have
also been swapped to drop things in the right order
2022-10-22 22:26:11 +02:00
d5d36cfadc Perform major code refactor
The rendering is moved from the renderer to the sprites. As a result,
WgpuRenderer is now more of a rendering context while the renderer in
itself is the context + the sprites
2022-10-22 00:21:41 +02:00