mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2025-11-01 22:58:38 -04:00
Further improvements to rendering subsystem
This commit is contained in:
parent
83f8864f0a
commit
cd6a40d816
17 changed files with 475 additions and 336 deletions
|
|
@ -41,7 +41,7 @@ void wlr_matrix_rotate(float (*output)[16], float radians) {
|
|||
(*output)[mind(2, 2)] = _cos;
|
||||
}
|
||||
|
||||
void wlr_matrix_mul(float (*x)[16], float (*y)[16], float (*product)[16]) {
|
||||
void wlr_matrix_mul(const float (*x)[16], const float (*y)[16], float (*product)[16]) {
|
||||
float _product[16] = {
|
||||
(*x)[mind(1, 1)] * (*y)[mind(1, 1)] + (*x)[mind(1, 2)] * (*y)[mind(2, 1)] +
|
||||
(*x)[mind(1, 3)] * (*y)[mind(3, 1)] + (*x)[mind(1, 4)] * (*y)[mind(4, 1)],
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue