TextureRef

public struct TextureRef : TextureProtocol

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

  • ptr
    Untyped pointer to the underlying `CoglTexture` instance.
    

    For type-safe access, use the generated, typed pointer texture_ptr property instead.

    Declaration

    Swift

    public let ptr: UnsafeMutableRawPointer!

Texture Interface