aboutsummaryrefslogtreecommitdiff
path: root/include/wlr/render/matrix.h
blob: 0b35aad3fe4ff8e95cbef9fbca6bd293f10790c1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#ifndef WLR_RENDER_MATRIX_H
#define WLR_RENDER_MATRIX_H

#include <stdint.h>

void wlr_matrix_identity(float (*output)[16]);
void wlr_matrix_translate(float (*output)[16], float x, float y, float z);
void wlr_matrix_scale(float (*output)[16], float x, float y, float z);
void wlr_matrix_rotate(float (*output)[16], float radians);
void wlr_matrix_mul(const float (*x)[16], const float (*y)[16], float (*product)[16]);

enum wl_output_transform;
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);

#endif