Back to Seed Clases

Cogl


Classes

Interfaces

Structs

Unions

Enums

Struct Cogl.Matrix

Import line: Cogl = imports.gi.Cogl;
GIR File: Cogl-1.0.gir
C documentation: CoglMatrix
Struct : Matrix
  Show / Hide Inherited methods, properties and signals
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 can represent transforms such as, rotations, scaling, translation, sheering, and linear projections. You can combine these transforms by multiplying multiple matrices in the order you want them applied. The transformation of a vertex (x, y, z, w) by a CoglMatrix is given by: |[ x_new = xx * x + xy * y + xz * z + xw * w y_new = yx * x + yy * y + yz * z + yw * w z_new = zx * x + zy * y + zz * z + zw * w w_new = wx * x + wy * y + wz * z + ww * w ]| Where w is normally 1 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().
Properties
Properties Defined By
Methods / Constructors
Method / Constructor Defined By
 
new Cogl.Matrix ()
Create a new Cogl.Matrix
Create a new Cogl.Matrix
 
Events
None
Used by These Methods / Signals / Properties
Class / Namespace Method / Signal / Properties
Clutter.Actor
Method
get_transformation_matrix () : Cogl.Matrix
Retrieves the transformations applied to self
Cogl
Method
Cogl.get_modelview_matrix () : Cogl.Matrix
Stores the current model-view matrix in matrix.
Cogl
Method
Cogl.get_projection_matrix () : Cogl.Matrix
Stores the current projection matrix in matrix.
Cogl
Method
Cogl.material_set_layer_matrix (void* material, Number layer_index, Matrix matrix) : none
This function lets you set a matrix that can be used to e.g.
Cogl
Method
Cogl.set_modelview_matrix (Matrix matrix) : none
Loads matrix as the new model-view matrix.
Cogl
Method
Cogl.set_projection_matrix (Matrix matrix) : none
Loads matrix as the new projection matrix.
Cogl
Method
Cogl.transform (Matrix matrix) : none
Multiplies the current model-view matrix by the given matrix.
Documentation generated by Introspection Doc Generator Loosely Based on JsDoc Toolkit on Tue Jun 22 2010 16:32:40 GMT+0800 (HKT)