mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2026-04-14 08:22:25 -04:00
util/matrix: Simplify matrix_projection
The transform argument is always passed WL_OUTPUT_TRANSFORM_FLIPPED_180
This commit is contained in:
parent
b6fec1b101
commit
51c07a662a
4 changed files with 7 additions and 20 deletions
|
|
@ -31,12 +31,10 @@ void wlr_matrix_transform(float mat[static 9],
|
|||
void wlr_matrix_project_box(float mat[static 9], const struct wlr_box *box);
|
||||
|
||||
/**
|
||||
* Writes a 2D orthographic projection matrix to mat of (width, height) with a
|
||||
* specified wl_output_transform.
|
||||
* Writes a 2D orthographic projection matrix to mat of (width, height).
|
||||
*
|
||||
* Equivalent to glOrtho(0, width, 0, height, 1, -1) with the transform applied.
|
||||
*/
|
||||
void matrix_projection(float mat[static 9], int width, int height,
|
||||
enum wl_output_transform transform);
|
||||
void matrix_projection(float mat[static 9], int width, int height);
|
||||
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue