[mutter/gbsneto/graphene-matrix: 37/104] cogl/matrix: Add constant identity initializer
- From: Georges Basile Stavracas Neto <gbsneto src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [mutter/gbsneto/graphene-matrix: 37/104] cogl/matrix: Add constant identity initializer
- Date: Tue, 6 Oct 2020 14:43:25 +0000 (UTC)
commit f222c281fdf5d33c27b4ba7e48013232eda97cfe
Author: Georges Basile Stavracas Neto <georges stavracas gmail com>
Date: Tue Sep 8 21:04:59 2020 -0300
cogl/matrix: Add constant identity initializer
https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/1439
cogl/cogl/cogl-matrix.h | 6 ++++++
1 file changed, 6 insertions(+)
---
diff --git a/cogl/cogl/cogl-matrix.h b/cogl/cogl/cogl-matrix.h
index 2cfd95bbb2..e784b094ae 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:
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]