cogl/matrix: Add constant identity initializer
https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/1439
This commit is contained in:
parent
a761caf079
commit
eee2e331fd
1 changed files with 6 additions and 0 deletions
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue