ZMtlSurfaceView

class ZMtlSurfaceView(view: MTKView) : ZSurfaceView(source)

Constructors

Link copied to clipboard
constructor(view: MTKView)

Properties

Link copied to clipboard

Represents an event handler that listens to surface-related events. Such as lifecycle and rendering updates, through ZSurfaceViewEventHandler.

Link copied to clipboard
open override var eventQueue: ZEventQueue?

Event queue for user input events (touch, etc.). Not yet implemented for Metal/iOS platform.

Link copied to clipboard
var nativeView: MTKView
Link copied to clipboard
open override val surfaceHeight: Int

Represents the height of the rendering surface in logical pixels.

Link copied to clipboard
open override val surfaceWidth: Int

Represents the width of the rendering surface in logical pixels.

Functions

Link copied to clipboard
open override fun dispose()

Disposes the surface view and releases all associated resources.