summaryrefslogtreecommitdiff
path: root/cogl
diff options
context:
space:
mode:
authorGeorges Basile Stavracas Neto <georges.stavracas@gmail.com>2020-09-11 08:24:24 -0300
committerGeorges Basile Stavracas Neto <georges.stavracas@gmail.com>2020-09-25 11:19:51 -0300
commit0f48ca50f2a2eef85595f41845988f5d5f32fd6e (patch)
treea1c2035d55b756608321c5c320e35a2055030e16 /cogl
parent96820488ce4d9fa834051c94a5ab20e5626203c8 (diff)
downloadmutter-0f48ca50f2a2eef85595f41845988f5d5f32fd6e.tar.gz
cogl/matrix: Update outdated documentation and comments
No direct access of matrix entries is allowed anymore; and we use graphene_matrix_t internally. https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/1439
Diffstat (limited to 'cogl')
-rw-r--r--cogl/cogl/cogl-matrix.h12
1 files changed, 2 insertions, 10 deletions
diff --git a/cogl/cogl/cogl-matrix.h b/cogl/cogl/cogl-matrix.h
index e0cc8f616..b4482ae30 100644
--- a/cogl/cogl/cogl-matrix.h
+++ b/cogl/cogl/cogl-matrix.h
@@ -59,8 +59,8 @@ G_BEGIN_DECLS
/**
* CoglMatrix:
*
- * A CoglMatrix holds a 4x4 transform matrix. This is a single precision,
- * column-major matrix which means it is compatible with what OpenGL expects.
+ * A CoglMatrix holds a 4x4 transform matrix. It uses #graphene_matrix_t
+ * internally which means it is compatible with what OpenGL expects.
*
* A CoglMatrix can represent transforms such as, rotations, scaling,
* translation, sheering, and linear projections. You can combine these
@@ -77,20 +77,12 @@ G_BEGIN_DECLS
* ]|
*
* Where w is normally 1
- *
- * <note>You must consider the members of the CoglMatrix structure read only,
- * and all matrix modifications must be done via the cogl_matrix API. This
- * allows Cogl to annotate the matrices internally. Violation of this will give
- * undefined results. If you need to initialize a matrix with a constant other
- * than the identity matrix you can use cogl_matrix_init_from_array().</note>
*/
struct _CoglMatrix
{
/*< private >*/
graphene_matrix_t m;
- /* Note: we may want to extend this later with private flags
- * and a cache of the inverse transform matrix. */
graphene_matrix_t COGL_PRIVATE (inv);
unsigned long COGL_PRIVATE (flags);
unsigned long COGL_PRIVATE (_padding3);