Further improvements to rendering subsystem

This commit is contained in:
Drew DeVault 2017-06-08 15:52:42 -04:00
parent 83f8864f0a
commit cd6a40d816
17 changed files with 475 additions and 336 deletions

View file

@ -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)],