Structures
The following structures are available globally.
-
The
See more_ColorSizeCheckReftype acts as a lightweight Swift reference to an underlying_CoglColorSizeCheckinstance. It exposes methods that can operate on this data type through_ColorSizeCheckProtocolconformance. Use_ColorSizeCheckRefonly as anunownedreference to an existing_CoglColorSizeCheckinstance.Declaration
Swift
public struct _ColorSizeCheckRef : _ColorSizeCheckProtocol
-
The
See more_MatrixSizeCheckReftype acts as a lightweight Swift reference to an underlying_CoglMatrixSizeCheckinstance. It exposes methods that can operate on this data type through_MatrixSizeCheckProtocolconformance. Use_MatrixSizeCheckRefonly as anunownedreference to an existing_CoglMatrixSizeCheckinstance.Declaration
Swift
public struct _MatrixSizeCheckRef : _MatrixSizeCheckProtocol
-
The
See more_TextureVertexSizeCheckReftype acts as a lightweight Swift reference to an underlying_CoglTextureVertexSizeCheckinstance. It exposes methods that can operate on this data type through_TextureVertexSizeCheckProtocolconformance. Use_TextureVertexSizeCheckRefonly as anunownedreference to an existing_CoglTextureVertexSizeCheckinstance.Declaration
Swift
public struct _TextureVertexSizeCheckRef : _TextureVertexSizeCheckProtocol
-
The
See moreBitmapReftype acts as a lightweight Swift reference to an underlyingCoglBitmapinstance. It exposes methods that can operate on this data type throughBitmapProtocolconformance. UseBitmapRefonly as anunownedreference to an existingCoglBitmapinstance.Declaration
Swift
public struct BitmapRef : BitmapProtocol
-
A structure for holding a color definition. The contents of the CoglColor structure are private and should never by accessed directly.
The
See moreColorReftype acts as a lightweight Swift reference to an underlyingCoglColorinstance. It exposes methods that can operate on this data type throughColorProtocolconformance. UseColorRefonly as anunownedreference to an existingCoglColorinstance.Declaration
Swift
public struct ColorRef : ColorProtocol
-
The
See moreEulerReftype acts as a lightweight Swift reference to an underlyingCoglEulerinstance. It exposes methods that can operate on this data type throughEulerProtocolconformance. UseEulerRefonly as anunownedreference to an existingCoglEulerinstance.Declaration
Swift
public struct EulerRef : EulerProtocol
-
The
See moreMaterialReftype acts as a lightweight Swift reference to an underlyingCoglMaterialinstance. It exposes methods that can operate on this data type throughMaterialProtocolconformance. UseMaterialRefonly as anunownedreference to an existingCoglMaterialinstance.Declaration
Swift
public struct MaterialRef : MaterialProtocol
-
The
See moreMaterialLayerReftype acts as a lightweight Swift reference to an underlyingCoglMaterialLayerinstance. It exposes methods that can operate on this data type throughMaterialLayerProtocolconformance. UseMaterialLayerRefonly as anunownedreference to an existingCoglMaterialLayerinstance.Declaration
Swift
public struct MaterialLayerRef : 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 moreMatrixReftype acts as a lightweight Swift reference to an underlyingCoglMatrixinstance. It exposes methods that can operate on this data type throughMatrixProtocolconformance. UseMatrixRefonly as anunownedreference to an existingCoglMatrixinstance.Declaration
Swift
public struct MatrixRef : MatrixProtocol
-
The
See moreOffscreenReftype acts as a lightweight Swift reference to an underlyingCoglOffscreeninstance. It exposes methods that can operate on this data type throughOffscreenProtocolconformance. UseOffscreenRefonly as anunownedreference to an existingCoglOffscreeninstance.Declaration
Swift
public struct OffscreenRef : OffscreenProtocol
-
The
See moreQuaternionReftype acts as a lightweight Swift reference to an underlyingCoglQuaternioninstance. It exposes methods that can operate on this data type throughQuaternionProtocolconformance. UseQuaternionRefonly as anunownedreference to an existingCoglQuaternioninstance.Declaration
Swift
public struct QuaternionRef : QuaternionProtocol
-
The
See moreTextureReftype acts as a lightweight Swift reference to an underlyingCoglTextureinstance. It exposes methods that can operate on this data type throughTextureProtocolconformance. UseTextureRefonly as anunownedreference to an existingCoglTextureinstance.Declaration
Swift
public struct TextureRef : TextureProtocol
-
Used to specify vertex information when calling
cogl_polygon()The
See moreTextureVertexReftype acts as a lightweight Swift reference to an underlyingCoglTextureVertexinstance. It exposes methods that can operate on this data type throughTextureVertexProtocolconformance. UseTextureVertexRefonly as anunownedreference to an existingCoglTextureVertexinstance.Declaration
Swift
public struct TextureVertexRef : TextureVertexProtocol -
Types of auxiliary buffers
See moreDeclaration
Swift
public struct BufferBit : OptionSet -
Target flags for FBOs.
See moreDeclaration
Swift
public struct BufferTarget : OptionSet -
Defines a bit mask of color channels. This can be used with
See morecogl_pipeline_set_color_mask()for example to define which color channels should be written to the current framebuffer when drawing something.Declaration
Swift
public struct ColorMask : OptionSet -
Flags for the supported features.
See moreDeclaration
Swift
public struct FeatureFlags : OptionSet -
Flags for
See morecogl_framebuffer_read_pixels_into_bitmap()Declaration
Swift
public struct ReadPixelsFlags : OptionSet -
Flags to pass to the cogl_texture_new_* family of functions.
See moreDeclaration
Swift
public struct TextureFlags : OptionSet
View on GitHub
Install in Dash
Structures Reference