Structures

The following structures are available globally.

_ColorSizeCheck Record

  • The _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 an unowned reference to an existing _CoglColorSizeCheck instance.

    See more

    Declaration

    Swift

    public struct _ColorSizeCheckRef : _ColorSizeCheckProtocol

_MatrixSizeCheck Record

_TextureVertexSizeCheck Record

Bitmap Class

  • The BitmapRef type acts as a lightweight Swift reference to an underlying CoglBitmap instance. It exposes methods that can operate on this data type through BitmapProtocol conformance. Use BitmapRef only as an unowned reference to an existing CoglBitmap instance.

    See more

    Declaration

    Swift

    public struct BitmapRef : BitmapProtocol

Color Record

  • A structure for holding a color definition. The contents of the CoglColor structure are private and should never by accessed directly.

    The ColorRef type acts as a lightweight Swift reference to an underlying CoglColor instance. It exposes methods that can operate on this data type through ColorProtocol conformance. Use ColorRef only as an unowned reference to an existing CoglColor instance.

    See more

    Declaration

    Swift

    public struct ColorRef : ColorProtocol

Euler Record

  • The EulerRef type acts as a lightweight Swift reference to an underlying CoglEuler instance. It exposes methods that can operate on this data type through EulerProtocol conformance. Use EulerRef only as an unowned reference to an existing CoglEuler instance.

    See more

    Declaration

    Swift

    public struct EulerRef : EulerProtocol

Material Record

  • The MaterialRef type acts as a lightweight Swift reference to an underlying CoglMaterial instance. It exposes methods that can operate on this data type through MaterialProtocol conformance. Use MaterialRef only as an unowned reference to an existing CoglMaterial instance.

    See more

    Declaration

    Swift

    public struct MaterialRef : MaterialProtocol

MaterialLayer Record

  • The MaterialLayerRef type acts as a lightweight Swift reference to an underlying CoglMaterialLayer instance. It exposes methods that can operate on this data type through MaterialLayerProtocol conformance. Use MaterialLayerRef only as an unowned reference to an existing CoglMaterialLayer instance.

    See more

    Declaration

    Swift

    public struct MaterialLayerRef : MaterialLayerProtocol

Matrix Record

  • 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 MatrixRef type acts as a lightweight Swift reference to an underlying CoglMatrix instance. It exposes methods that can operate on this data type through MatrixProtocol conformance. Use MatrixRef only as an unowned reference to an existing CoglMatrix instance.

    See more

    Declaration

    Swift

    public struct MatrixRef : MatrixProtocol

Offscreen Class

  • The OffscreenRef type acts as a lightweight Swift reference to an underlying CoglOffscreen instance. It exposes methods that can operate on this data type through OffscreenProtocol conformance. Use OffscreenRef only as an unowned reference to an existing CoglOffscreen instance.

    See more

    Declaration

    Swift

    public struct OffscreenRef : OffscreenProtocol

Quaternion Record

  • The QuaternionRef type acts as a lightweight Swift reference to an underlying CoglQuaternion instance. It exposes methods that can operate on this data type through QuaternionProtocol conformance. Use QuaternionRef only as an unowned reference to an existing CoglQuaternion instance.

    See more

    Declaration

    Swift

    public struct QuaternionRef : QuaternionProtocol

Texture Interface

TextureVertex Record

  • Used to specify vertex information when calling cogl_polygon()

    The TextureVertexRef type acts as a lightweight Swift reference to an underlying CoglTextureVertex instance. It exposes methods that can operate on this data type through TextureVertexProtocol conformance. Use TextureVertexRef only as an unowned reference to an existing CoglTextureVertex instance.

    See more

    Declaration

    Swift

    public struct TextureVertexRef : TextureVertexProtocol
  • Types of auxiliary buffers

    See more

    Declaration

    Swift

    public struct BufferBit : OptionSet
  • Target flags for FBOs.

    See more

    Declaration

    Swift

    public struct BufferTarget : OptionSet
  • Defines a bit mask of color channels. This can be used with cogl_pipeline_set_color_mask() for example to define which color channels should be written to the current framebuffer when drawing something.

    See more

    Declaration

    Swift

    public struct ColorMask : OptionSet
  • Flags for the supported features.

    See more

    Declaration

    Swift

    public struct FeatureFlags : OptionSet
  • Flags for cogl_framebuffer_read_pixels_into_bitmap()

    See more

    Declaration

    Swift

    public struct ReadPixelsFlags : OptionSet
  • Flags to pass to the cogl_texture_new_* family of functions.

    See more

    Declaration

    Swift

    public struct TextureFlags : OptionSet