Classes
The following classes are available globally.
-
The
See more_ColorSizeCheck
type acts as an owner of an underlying_CoglColorSizeCheck
instance. It provides the methods that can operate on this data type through_ColorSizeCheckProtocol
conformance. Use_ColorSizeCheck
as a strong reference or owner of a_CoglColorSizeCheck
instance.Declaration
Swift
open class _ColorSizeCheck : _ColorSizeCheckProtocol
-
The
See more_MatrixSizeCheck
type acts as an owner of an underlying_CoglMatrixSizeCheck
instance. It provides the methods that can operate on this data type through_MatrixSizeCheckProtocol
conformance. Use_MatrixSizeCheck
as a strong reference or owner of a_CoglMatrixSizeCheck
instance.Declaration
Swift
open class _MatrixSizeCheck : _MatrixSizeCheckProtocol
-
The
See more_TextureVertexSizeCheck
type acts as an owner of an underlying_CoglTextureVertexSizeCheck
instance. It provides the methods that can operate on this data type through_TextureVertexSizeCheckProtocol
conformance. Use_TextureVertexSizeCheck
as a strong reference or owner of a_CoglTextureVertexSizeCheck
instance.Declaration
Swift
open class _TextureVertexSizeCheck : _TextureVertexSizeCheckProtocol
-
The
See moreBitmap
type acts as an owner of an underlyingCoglBitmap
instance. It provides the methods that can operate on this data type throughBitmapProtocol
conformance. UseBitmap
as a strong reference or owner of aCoglBitmap
instance.Declaration
Swift
open class Bitmap : BitmapProtocol
-
A structure for holding a color definition. The contents of the CoglColor structure are private and should never by accessed directly.
The
See moreColor
type acts as an owner of an underlyingCoglColor
instance. It provides the methods that can operate on this data type throughColorProtocol
conformance. UseColor
as a strong reference or owner of aCoglColor
instance.Declaration
Swift
open class Color : ColorProtocol
-
The
See moreEuler
type acts as an owner of an underlyingCoglEuler
instance. It provides the methods that can operate on this data type throughEulerProtocol
conformance. UseEuler
as a strong reference or owner of aCoglEuler
instance.Declaration
Swift
open class Euler : EulerProtocol
-
The
See moreMaterial
type acts as an owner of an underlyingCoglMaterial
instance. It provides the methods that can operate on this data type throughMaterialProtocol
conformance. UseMaterial
as a strong reference or owner of aCoglMaterial
instance.Declaration
Swift
open class Material : MaterialProtocol
-
The
See moreMaterialLayer
type acts as an owner of an underlyingCoglMaterialLayer
instance. It provides the methods that can operate on this data type throughMaterialLayerProtocol
conformance. UseMaterialLayer
as a strong reference or owner of aCoglMaterialLayer
instance.Declaration
Swift
open class MaterialLayer : MaterialLayerProtocol
-
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
<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>The
See moreMatrix
type acts as an owner of an underlyingCoglMatrix
instance. It provides the methods that can operate on this data type throughMatrixProtocol
conformance. UseMatrix
as a strong reference or owner of aCoglMatrix
instance.Declaration
Swift
open class Matrix : MatrixProtocol
-
The
See moreOffscreen
type acts as an owner of an underlyingCoglOffscreen
instance. It provides the methods that can operate on this data type throughOffscreenProtocol
conformance. UseOffscreen
as a strong reference or owner of aCoglOffscreen
instance.Declaration
Swift
open class Offscreen : OffscreenProtocol
-
The
See moreQuaternion
type acts as an owner of an underlyingCoglQuaternion
instance. It provides the methods that can operate on this data type throughQuaternionProtocol
conformance. UseQuaternion
as a strong reference or owner of aCoglQuaternion
instance.Declaration
Swift
open class Quaternion : QuaternionProtocol
-
The
See moreTexture
type acts as an owner of an underlyingCoglTexture
instance. It provides the methods that can operate on this data type throughTextureProtocol
conformance. UseTexture
as a strong reference or owner of aCoglTexture
instance.Declaration
Swift
open class Texture : TextureProtocol
-
Used to specify vertex information when calling
cogl_polygon()
The
See moreTextureVertex
type acts as an owner of an underlyingCoglTextureVertex
instance. It provides the methods that can operate on this data type throughTextureVertexProtocol
conformance. UseTextureVertex
as a strong reference or owner of aCoglTextureVertex
instance.Declaration
Swift
open class TextureVertex : TextureVertexProtocol