issues
search
DaveGreen-Games
/
ShapeEngine
My custom made engine based on the great Raylib Framework. Main focus is being performant and only using draw functions instead of textures.
MIT License
336
stars
12
forks
source link
Transform2D overhaul
#31
Closed
SoloByte
closed
4 months ago
SoloByte
commented
5 months ago
I am not 100% happy with Transform2d struct yet.
[ ] Add a matrix based transform struct (TransformMatrix2D)
[ ] Add a scale member to Transform2D
[ ] Rename Size to BaseSize
[ ] Size => BaseSize * Scale
[ ] Polygon can use scale member
[ ] Other things can still use size and have access to easy scaling as well
[x] ~I might add an Offset2d struct that represents Translation, Rotation change, and Scale~
[x] ~Alternatively I could add an Add/RemoveOffset(Transform2d offset) functions to the Transform2d struct instead of adding an Offset2d struct~
[x] ~Transform2d operater +/- can be used to apply a transform2d as an offset where sizes are added together.~
[x] ~Transform2d +/- Offset2d scales the size in transform based on the offsets scale value.~
I am not 100% happy with Transform2d struct yet.