1
0
Fork 0

cogl/matrix: Add constant identity initializer

https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/1439
This commit is contained in:
Georges Basile Stavracas Neto 2020-09-08 21:04:59 -03:00
parent a761caf079
commit eee2e331fd

View file

@ -121,6 +121,12 @@ struct _CoglMatrix
};
COGL_STRUCT_SIZE_ASSERT (CoglMatrix, 128 + sizeof (unsigned long) * 3);
#define COGL_MATRIX_INIT_IDENTITY (CoglMatrix) { \
1.0f, 0.0f, 0.0f, 0.0f, \
0.0f, 1.0f, 0.0f, 0.0f, \
0.0f, 0.0f, 1.0f, 0.0f, \
0.0f, 0.0f, 0.0f, 1.0f, \
}
/**
* cogl_matrix_init_identity: