mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2025-11-02 09:01:38 -05:00
move matrix model code to matrix.h
This commit is contained in:
parent
7474f00591
commit
d13114520a
5 changed files with 68 additions and 56 deletions
|
|
@ -2,6 +2,7 @@
|
|||
#define WLR_RENDER_MATRIX_H
|
||||
|
||||
#include <stdint.h>
|
||||
#include <wlr/types/wlr_box.h>
|
||||
|
||||
void wlr_matrix_identity(float (*output)[16]);
|
||||
void wlr_matrix_translate(float (*output)[16], float x, float y, float z);
|
||||
|
|
@ -14,5 +15,7 @@ void wlr_matrix_transform(float mat[static 16],
|
|||
enum wl_output_transform transform);
|
||||
void wlr_matrix_texture(float mat[static 16], int32_t width, int32_t height,
|
||||
enum wl_output_transform transform);
|
||||
void wlr_matrix_box_model(float (*mat)[16], struct wlr_box *box,
|
||||
enum wl_output_transform transform, float rotation);
|
||||
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue