OffscreenProtocol
public protocol OffscreenProtocol
The OffscreenProtocol
protocol exposes the methods and properties of an underlying CoglOffscreen
instance.
The default implementation of these can be found in the protocol extension below.
For a concrete class that implements these methods and properties, see Offscreen
.
Alternatively, use OffscreenRef
as a lighweight, unowned
reference if you already have an instance you just want to use.
-
Untyped pointer to the underlying
CoglOffscreen
instance.Declaration
Swift
var ptr: UnsafeMutableRawPointer! { get }
-
offscreen_ptr
Default implementationTyped pointer to the underlying
CoglOffscreen
instance.Default Implementation
Return the stored, untyped pointer as a typed pointer to the
CoglOffscreen
instance.Declaration
Swift
var offscreen_ptr: UnsafeMutablePointer<CoglOffscreen>! { get }
-
Required Initialiser for types conforming to
OffscreenProtocol
Declaration
Swift
init(raw: UnsafeMutableRawPointer)