Alexander Orzechowski
97b01d9b9b
util/matrix: Drop wlr_ prefix
2025-02-22 17:06:46 -05:00
Alexander Orzechowski
7775f55e3a
util/matrix: Rework matrix_projection to compute transform on-demand
2025-02-22 17:06:46 -05:00
Alexander Orzechowski
99b6084fcd
util/matrix: Inline wlr_matrix_{identity, scale, translate}
2025-02-22 17:06:46 -05:00
Alexander Orzechowski
088b7c98c5
util/matrix: Introduce wlr_matrix_project_fbox
...
Same as wlr_matrix_project_box but takes an fbox
And use it with gles2
2025-02-22 17:06:46 -05:00
Alexander Orzechowski
51c07a662a
util/matrix: Simplify matrix_projection
...
The transform argument is always passed WL_OUTPUT_TRANSFORM_FLIPPED_180
2025-02-22 17:06:46 -05:00
Alexander Orzechowski
b6fec1b101
util/matrix: Simplify wlr_matrix_project_box
...
Remove the transform and projection arguments.
2025-02-22 17:06:46 -05:00
Alexander Orzechowski
3a4bc44688
util/matrix: Rotate around (.5, .5) with wlr_matrix_transform
...
Before we would rotate around 0,0 which means that the content needed
to be scaled to -1, 1 to be transformed properly when we're usually
working in the 0, 1 range. Switch it around.
These matrices were precomputed by simply adding a -.5 -.5 translate
and back again with old transform in between.
2025-02-22 17:06:26 -05:00
Simon Ser
0d056a0315
util/matrix: remove unnecessary include
2025-01-27 17:50:18 +01:00
Simon Ser
639ca05d35
matrix: move to util/
...
wlr_matrix is not a standalone type like other headers in types/,
it's more of an internal utility. Move it to the appropriate place.
2025-01-27 17:48:18 +01:00