Structures
The following structures are available globally.
-
The
See more_ColorSizeCheckRef
type acts as a lightweight Swift reference to an underlying_CoglColorSizeCheck
instance. It exposes methods that can operate on this data type through_ColorSizeCheckProtocol
conformance. Use_ColorSizeCheckRef
only as anunowned
reference to an existing_CoglColorSizeCheck
instance.Declaration
Swift
public struct _ColorSizeCheckRef : _ColorSizeCheckProtocol
-
The
See more_MatrixSizeCheckRef
type acts as a lightweight Swift reference to an underlying_CoglMatrixSizeCheck
instance. It exposes methods that can operate on this data type through_MatrixSizeCheckProtocol
conformance. Use_MatrixSizeCheckRef
only as anunowned
reference to an existing_CoglMatrixSizeCheck
instance.Declaration
Swift
public struct _MatrixSizeCheckRef : _MatrixSizeCheckProtocol
-
The
See more_TextureVertexSizeCheckRef
type acts as a lightweight Swift reference to an underlying_CoglTextureVertexSizeCheck
instance. It exposes methods that can operate on this data type through_TextureVertexSizeCheckProtocol
conformance. Use_TextureVertexSizeCheckRef
only as anunowned
reference to an existing_CoglTextureVertexSizeCheck
instance.Declaration
Swift
public struct _TextureVertexSizeCheckRef : _TextureVertexSizeCheckProtocol
-
The
See moreBitmapRef
type acts as a lightweight Swift reference to an underlyingCoglBitmap
instance. It exposes methods that can operate on this data type throughBitmapProtocol
conformance. UseBitmapRef
only as anunowned
reference to an existingCoglBitmap
instance.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 moreColorRef
type acts as a lightweight Swift reference to an underlyingCoglColor
instance. It exposes methods that can operate on this data type throughColorProtocol
conformance. UseColorRef
only as anunowned
reference to an existingCoglColor
instance.Declaration
Swift
public struct ColorRef : ColorProtocol
-
The
See moreEulerRef
type acts as a lightweight Swift reference to an underlyingCoglEuler
instance. It exposes methods that can operate on this data type throughEulerProtocol
conformance. UseEulerRef
only as anunowned
reference to an existingCoglEuler
instance.Declaration
Swift
public struct EulerRef : EulerProtocol
-
The
See moreMaterialRef
type acts as a lightweight Swift reference to an underlyingCoglMaterial
instance. It exposes methods that can operate on this data type throughMaterialProtocol
conformance. UseMaterialRef
only as anunowned
reference to an existingCoglMaterial
instance.Declaration
Swift
public struct MaterialRef : MaterialProtocol
-
The
See moreMaterialLayerRef
type acts as a lightweight Swift reference to an underlyingCoglMaterialLayer
instance. It exposes methods that can operate on this data type throughMaterialLayerProtocol
conformance. UseMaterialLayerRef
only as anunowned
reference to an existingCoglMaterialLayer
instance.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 * 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 moreMatrixRef
type acts as a lightweight Swift reference to an underlyingCoglMatrix
instance. It exposes methods that can operate on this data type throughMatrixProtocol
conformance. UseMatrixRef
only as anunowned
reference to an existingCoglMatrix
instance.Declaration
Swift
public struct MatrixRef : MatrixProtocol
-
The
See moreOffscreenRef
type acts as a lightweight Swift reference to an underlyingCoglOffscreen
instance. It exposes methods that can operate on this data type throughOffscreenProtocol
conformance. UseOffscreenRef
only as anunowned
reference to an existingCoglOffscreen
instance.Declaration
Swift
public struct OffscreenRef : OffscreenProtocol
-
The
See moreQuaternionRef
type acts as a lightweight Swift reference to an underlyingCoglQuaternion
instance. It exposes methods that can operate on this data type throughQuaternionProtocol
conformance. UseQuaternionRef
only as anunowned
reference to an existingCoglQuaternion
instance.Declaration
Swift
public struct QuaternionRef : QuaternionProtocol
-
The
See moreTextureRef
type acts as a lightweight Swift reference to an underlyingCoglTexture
instance. It exposes methods that can operate on this data type throughTextureProtocol
conformance. UseTextureRef
only as anunowned
reference to an existingCoglTexture
instance.Declaration
Swift
public struct TextureRef : TextureProtocol
-
Used to specify vertex information when calling
cogl_polygon()
The
See moreTextureVertexRef
type acts as a lightweight Swift reference to an underlyingCoglTextureVertex
instance. It exposes methods that can operate on this data type throughTextureVertexProtocol
conformance. UseTextureVertexRef
only as anunowned
reference to an existingCoglTextureVertex
instance.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