mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2026-04-19 06:47:02 -04:00
util/matrix: Introduce wlr_matrix_project_fbox
Same as wlr_matrix_project_box but takes an fbox And use it with gles2
This commit is contained in:
parent
26d24d2229
commit
088b7c98c5
3 changed files with 18 additions and 12 deletions
|
|
@ -4,6 +4,7 @@
|
|||
#include <wayland-server-protocol.h>
|
||||
|
||||
struct wlr_box;
|
||||
struct wlr_fbox;
|
||||
|
||||
/** Writes the identity matrix into mat */
|
||||
void wlr_matrix_identity(float mat[static 9]);
|
||||
|
|
@ -30,6 +31,8 @@ void wlr_matrix_transform(float mat[static 9],
|
|||
*/
|
||||
void wlr_matrix_project_box(float mat[static 9], const struct wlr_box *box);
|
||||
|
||||
void wlr_matrix_project_fbox(float mat[static 9], const struct wlr_fbox *box);
|
||||
|
||||
/**
|
||||
* Writes a 2D orthographic projection matrix to mat of (width, height).
|
||||
*
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue