mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2026-04-16 08:21:40 -04:00
util/matrix: Inline wlr_matrix_{identity, scale, translate}
This commit is contained in:
parent
088b7c98c5
commit
99b6084fcd
2 changed files with 11 additions and 39 deletions
|
|
@ -6,19 +6,10 @@
|
|||
struct wlr_box;
|
||||
struct wlr_fbox;
|
||||
|
||||
/** Writes the identity matrix into mat */
|
||||
void wlr_matrix_identity(float mat[static 9]);
|
||||
|
||||
/** mat ← a × b */
|
||||
void wlr_matrix_multiply(float mat[static 9], const float a[static 9],
|
||||
const float b[static 9]);
|
||||
|
||||
/** Writes a 2D translation matrix to mat of magnitude (x, y) */
|
||||
void wlr_matrix_translate(float mat[static 9], float x, float y);
|
||||
|
||||
/** Writes a 2D scale matrix to mat of magnitude (x, y) */
|
||||
void wlr_matrix_scale(float mat[static 9], float x, float y);
|
||||
|
||||
/** Writes a transformation matrix which applies the specified
|
||||
* wl_output_transform to mat */
|
||||
void wlr_matrix_transform(float mat[static 9],
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue