Protocols
The following protocols are available globally.
-
The
See more_ColorSizeCheckProtocolprotocol exposes the methods and properties of an underlying_CoglColorSizeCheckinstance. The default implementation of these can be found in the protocol extension below. For a concrete class that implements these methods and properties, see_ColorSizeCheck. Alternatively, use_ColorSizeCheckRefas a lighweight,unownedreference if you already have an instance you just want to use.Declaration
Swift
public protocol _ColorSizeCheckProtocol
-
The
See more_MatrixSizeCheckProtocolprotocol exposes the methods and properties of an underlying_CoglMatrixSizeCheckinstance. The default implementation of these can be found in the protocol extension below. For a concrete class that implements these methods and properties, see_MatrixSizeCheck. Alternatively, use_MatrixSizeCheckRefas a lighweight,unownedreference if you already have an instance you just want to use.Declaration
Swift
public protocol _MatrixSizeCheckProtocol
-
The
See more_TextureVertexSizeCheckProtocolprotocol exposes the methods and properties of an underlying_CoglTextureVertexSizeCheckinstance. The default implementation of these can be found in the protocol extension below. For a concrete class that implements these methods and properties, see_TextureVertexSizeCheck. Alternatively, use_TextureVertexSizeCheckRefas a lighweight,unownedreference if you already have an instance you just want to use.Declaration
Swift
public protocol _TextureVertexSizeCheckProtocol
-
The
See moreBitmapProtocolprotocol exposes the methods and properties of an underlyingCoglBitmapinstance. The default implementation of these can be found in the protocol extension below. For a concrete class that implements these methods and properties, seeBitmap. Alternatively, useBitmapRefas a lighweight,unownedreference if you already have an instance you just want to use.Declaration
Swift
public protocol BitmapProtocol
-
A structure for holding a color definition. The contents of the CoglColor structure are private and should never by accessed directly.
The
See moreColorProtocolprotocol exposes the methods and properties of an underlyingCoglColorinstance. The default implementation of these can be found in the protocol extension below. For a concrete class that implements these methods and properties, seeColor. Alternatively, useColorRefas a lighweight,unownedreference if you already have an instance you just want to use.Declaration
Swift
public protocol ColorProtocol
-
The
See moreEulerProtocolprotocol exposes the methods and properties of an underlyingCoglEulerinstance. The default implementation of these can be found in the protocol extension below. For a concrete class that implements these methods and properties, seeEuler. Alternatively, useEulerRefas a lighweight,unownedreference if you already have an instance you just want to use.Declaration
Swift
public protocol EulerProtocol
-
The
See moreMaterialProtocolprotocol exposes the methods and properties of an underlyingCoglMaterialinstance. The default implementation of these can be found in the protocol extension below. For a concrete class that implements these methods and properties, seeMaterial. Alternatively, useMaterialRefas a lighweight,unownedreference if you already have an instance you just want to use.Declaration
Swift
public protocol MaterialProtocol
-
The
See moreMaterialLayerProtocolprotocol exposes the methods and properties of an underlyingCoglMaterialLayerinstance. The default implementation of these can be found in the protocol extension below. For a concrete class that implements these methods and properties, seeMaterialLayer. Alternatively, useMaterialLayerRefas a lighweight,unownedreference if you already have an instance you just want to use.Declaration
Swift
public protocol 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 * wWhere 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 moreMatrixProtocolprotocol exposes the methods and properties of an underlyingCoglMatrixinstance. The default implementation of these can be found in the protocol extension below. For a concrete class that implements these methods and properties, seeMatrix. Alternatively, useMatrixRefas a lighweight,unownedreference if you already have an instance you just want to use.Declaration
Swift
public protocol MatrixProtocol
-
The
See moreOffscreenProtocolprotocol exposes the methods and properties of an underlyingCoglOffscreeninstance. The default implementation of these can be found in the protocol extension below. For a concrete class that implements these methods and properties, seeOffscreen. Alternatively, useOffscreenRefas a lighweight,unownedreference if you already have an instance you just want to use.Declaration
Swift
public protocol OffscreenProtocol
-
The
See moreQuaternionProtocolprotocol exposes the methods and properties of an underlyingCoglQuaternioninstance. The default implementation of these can be found in the protocol extension below. For a concrete class that implements these methods and properties, seeQuaternion. Alternatively, useQuaternionRefas a lighweight,unownedreference if you already have an instance you just want to use.Declaration
Swift
public protocol QuaternionProtocol
-
The
See moreTextureProtocolprotocol exposes the methods and properties of an underlyingCoglTextureinstance. The default implementation of these can be found in the protocol extension below. For a concrete class that implements these methods and properties, seeTexture. Alternatively, useTextureRefas a lighweight,unownedreference if you already have an instance you just want to use.Declaration
Swift
public protocol TextureProtocol
-
Used to specify vertex information when calling
cogl_polygon()The
See moreTextureVertexProtocolprotocol exposes the methods and properties of an underlyingCoglTextureVertexinstance. The default implementation of these can be found in the protocol extension below. For a concrete class that implements these methods and properties, seeTextureVertex. Alternatively, useTextureVertexRefas a lighweight,unownedreference if you already have an instance you just want to use.Declaration
Swift
public protocol TextureVertexProtocol
View on GitHub
Install in Dash
Protocols Reference