PlanetKitMTKViewDelegate
@objc
public protocol PlanetKitMTKViewDelegate
A delegate protocol for PlanetKitMTKView
that provides methods for notifying about drawing events and frame resolution changes.
-
Notifies the delegate that the first frame has been drawn.
Declaration
Swift
func didDrawFirstFrame(_ view: PlanetKitMTKView)
Parameters
view
The
PlanetKitMTKView
instance that drew the first frame. -
Notifies the delegate that the frame resolution has changed.
Declaration
Swift
@objc optional func didChangeFrameResolution(_ view: PlanetKitMTKView, oldResolution: PlanetKitMTKViewResolution, newResolution: PlanetKitMTKViewResolution)
Parameters
view
The
PlanetKitMTKView
instance whose frame resolution changed.oldResolution
The previous frame resolution.
newResolution
The new frame resolution.