compositor: Export matrix functions
This commit is contained in:
@@ -76,7 +76,7 @@ wlsc_matrix_multiply(struct wlsc_matrix *m, const struct wlsc_matrix *n)
|
|||||||
memcpy(m, &tmp, sizeof tmp);
|
memcpy(m, &tmp, sizeof tmp);
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
WL_EXPORT void
|
||||||
wlsc_matrix_translate(struct wlsc_matrix *matrix, GLfloat x, GLfloat y, GLfloat z)
|
wlsc_matrix_translate(struct wlsc_matrix *matrix, GLfloat x, GLfloat y, GLfloat z)
|
||||||
{
|
{
|
||||||
struct wlsc_matrix translate = {
|
struct wlsc_matrix translate = {
|
||||||
@@ -86,7 +86,7 @@ wlsc_matrix_translate(struct wlsc_matrix *matrix, GLfloat x, GLfloat y, GLfloat
|
|||||||
wlsc_matrix_multiply(matrix, &translate);
|
wlsc_matrix_multiply(matrix, &translate);
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
WL_EXPORT void
|
||||||
wlsc_matrix_scale(struct wlsc_matrix *matrix, GLfloat x, GLfloat y, GLfloat z)
|
wlsc_matrix_scale(struct wlsc_matrix *matrix, GLfloat x, GLfloat y, GLfloat z)
|
||||||
{
|
{
|
||||||
struct wlsc_matrix scale = {
|
struct wlsc_matrix scale = {
|
||||||
|
|||||||
@@ -37,6 +37,14 @@ struct wlsc_matrix {
|
|||||||
GLfloat d[16];
|
GLfloat d[16];
|
||||||
};
|
};
|
||||||
|
|
||||||
|
void
|
||||||
|
wlsc_matrix_init(struct wlsc_matrix *matrix);
|
||||||
|
void
|
||||||
|
wlsc_matrix_scale(struct wlsc_matrix *matrix, GLfloat x, GLfloat y, GLfloat z);
|
||||||
|
void
|
||||||
|
wlsc_matrix_translate(struct wlsc_matrix *matrix,
|
||||||
|
GLfloat x, GLfloat y, GLfloat z);
|
||||||
|
|
||||||
struct wlsc_surface;
|
struct wlsc_surface;
|
||||||
|
|
||||||
struct wlsc_output {
|
struct wlsc_output {
|
||||||
|
|||||||
Reference in New Issue
Block a user