summaryrefslogtreecommitdiff
path: root/include/render/fx_renderer/matrix.h
diff options
context:
space:
mode:
authorErik Reider <[email protected]>2023-12-30 11:25:16 +0100
committerErik Reider <[email protected]>2024-01-02 11:21:58 +0100
commit0b52aa9d137b03017313e028accc92dc5d536440 (patch)
tree06649993526e0a339fff34f0ae8b4c8ec2fa4d13 /include/render/fx_renderer/matrix.h
parentb929a2bbadf467864796ad4ec90882ce86cfebff (diff)
Initial rebase without effects
Diffstat (limited to 'include/render/fx_renderer/matrix.h')
-rw-r--r--include/render/fx_renderer/matrix.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/include/render/fx_renderer/matrix.h b/include/render/fx_renderer/matrix.h
index 6931e8d..c3bae42 100644
--- a/include/render/fx_renderer/matrix.h
+++ b/include/render/fx_renderer/matrix.h
@@ -3,7 +3,13 @@
#include <wlr/types/wlr_output.h>
+/**
+ * Writes a 2D orthographic projection matrix to mat of (width, height) with a
+ * specified wl_output_transform.
+ *
+ * Equivalent to glOrtho(0, width, 0, height, 1, -1) with the transform applied.
+ */
void matrix_projection(float mat[static 9], int width, int height,
- enum wl_output_transform transform);
+ enum wl_output_transform transform);
#endif