diff --git a/cogl/cogl/cogl-matrix.h b/cogl/cogl/cogl-matrix.h index 2cfd95bbb..e784b094a 100644 --- a/cogl/cogl/cogl-matrix.h +++ b/cogl/cogl/cogl-matrix.h @@ -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: