diff options
author | Drew DeVault <sir@cmpwn.com> | 2018-02-19 18:10:24 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-02-19 18:10:24 -0500 |
commit | c4fb9651445bb7302a904b05583c064ff09cb48e (patch) | |
tree | 266f8d4438350bbaa56567f5553ca441e5d4f1be /render/matrix.c | |
parent | 09cfa39392bd049225b1be7590cd099131472bf2 (diff) | |
parent | 1d9be89e2d62316690ed211e50b79f2bec38e00f (diff) |
Merge pull request #651 from swaywm/revert-647-elf_visibility
Revert "ELF Visibility"
Diffstat (limited to 'render/matrix.c')
-rw-r--r-- | render/matrix.c | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/render/matrix.c b/render/matrix.c index ca6b995b..d5d7f49d 100644 --- a/render/matrix.c +++ b/render/matrix.c @@ -4,14 +4,12 @@ #include <wlr/render/matrix.h> #include <wlr/types/wlr_box.h> #include <wlr/types/wlr_output.h> -#include "util/defs.h" /* Obtains the index for the given row/column */ static inline int mind(int row, int col) { return (row - 1) * 4 + col - 1; } -WLR_API void wlr_matrix_identity(float (*output)[16]) { static const float identity[16] = { 1.0f, 0.0f, 0.0f, 0.0f, @@ -22,7 +20,6 @@ void wlr_matrix_identity(float (*output)[16]) { memcpy(*output, identity, sizeof(identity)); } -WLR_API void wlr_matrix_translate(float (*output)[16], float x, float y, float z) { wlr_matrix_identity(output); (*output)[mind(1, 4)] = x; @@ -30,7 +27,6 @@ void wlr_matrix_translate(float (*output)[16], float x, float y, float z) { (*output)[mind(3, 4)] = z; } -WLR_API void wlr_matrix_scale(float (*output)[16], float x, float y, float z) { wlr_matrix_identity(output); (*output)[mind(1, 1)] = x; @@ -38,7 +34,6 @@ void wlr_matrix_scale(float (*output)[16], float x, float y, float z) { (*output)[mind(3, 3)] = z; } -WLR_API void wlr_matrix_rotate(float (*output)[16], float radians) { wlr_matrix_identity(output); float _cos = cosf(radians); @@ -49,7 +44,6 @@ void wlr_matrix_rotate(float (*output)[16], float radians) { (*output)[mind(2, 2)] = _cos; } -WLR_API 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)] + @@ -126,7 +120,6 @@ static const float transforms[][4] = { }, }; -WLR_API void wlr_matrix_transform(float mat[static 16], enum wl_output_transform transform) { memset(mat, 0, sizeof(*mat) * 16); @@ -145,7 +138,6 @@ void wlr_matrix_transform(float mat[static 16], } // Equivilent to glOrtho(0, width, 0, height, 1, -1) with the transform applied -WLR_API void wlr_matrix_texture(float mat[static 16], int32_t width, int32_t height, enum wl_output_transform transform) { memset(mat, 0, sizeof(*mat) * 16); @@ -169,7 +161,6 @@ void wlr_matrix_texture(float mat[static 16], int32_t width, int32_t height, mat[15] = 1.0f; } -WLR_API void wlr_matrix_project_box(float (*mat)[16], struct wlr_box *box, enum wl_output_transform transform, float rotation, float (*projection)[16]) { |