Classes

The following classes are available globally.

_ColorSizeCheck Record

_MatrixSizeCheck Record

_TextureVertexSizeCheck Record

Bitmap Class

  • The Bitmap type acts as an owner of an underlying CoglBitmap instance. It provides the methods that can operate on this data type through BitmapProtocol conformance. Use Bitmap as a strong reference or owner of a CoglBitmap instance.

    See more

    Declaration

    Swift

    open class Bitmap : 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 Color type acts as an owner of an underlying CoglColor instance. It provides the methods that can operate on this data type through ColorProtocol conformance. Use Color as a strong reference or owner of a CoglColor instance.

    See more

    Declaration

    Swift

    open class Color : ColorProtocol

Euler Record

  • The Euler type acts as an owner of an underlying CoglEuler instance. It provides the methods that can operate on this data type through EulerProtocol conformance. Use Euler as a strong reference or owner of a CoglEuler instance.

    See more

    Declaration

    Swift

    open class Euler : EulerProtocol

Material Record

  • The Material type acts as an owner of an underlying CoglMaterial instance. It provides the methods that can operate on this data type through MaterialProtocol conformance. Use Material as a strong reference or owner of a CoglMaterial instance.

    See more

    Declaration

    Swift

    open class Material : MaterialProtocol

MaterialLayer Record

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 Matrix type acts as an owner of an underlying CoglMatrix instance. It provides the methods that can operate on this data type through MatrixProtocol conformance. Use Matrix as a strong reference or owner of a CoglMatrix instance.

    See more

    Declaration

    Swift

    open class Matrix : MatrixProtocol

Offscreen Class

  • The Offscreen type acts as an owner of an underlying CoglOffscreen instance. It provides the methods that can operate on this data type through OffscreenProtocol conformance. Use Offscreen as a strong reference or owner of a CoglOffscreen instance.

    See more

    Declaration

    Swift

    open class Offscreen : OffscreenProtocol

Quaternion Record

  • The Quaternion type acts as an owner of an underlying CoglQuaternion instance. It provides the methods that can operate on this data type through QuaternionProtocol conformance. Use Quaternion as a strong reference or owner of a CoglQuaternion instance.

    See more

    Declaration

    Swift

    open class Quaternion : QuaternionProtocol

Texture Interface

TextureVertex Record

  • Used to specify vertex information when calling cogl_polygon()

    The TextureVertex type acts as an owner of an underlying CoglTextureVertex instance. It provides the methods that can operate on this data type through TextureVertexProtocol conformance. Use TextureVertex as a strong reference or owner of a CoglTextureVertex instance.

    See more

    Declaration

    Swift

    open class TextureVertex : TextureVertexProtocol