ZSurfaceView

interface ZSurfaceView(source)

Represents a surface view that is used for rendering and handling events.

A ZSurfaceView provides functionalities for managing dimensions of the surface and handling events via an event handler. It acts as an interface for rendering and handling lifecycle or interaction-related updates.

Inheritors

ZAndroidSurfaceView
ZernikalosView
ZMtlSurfaceView
ZJsSurfaceView

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
abstract var eventQueue: ZEventQueue?

Represents the event queue that accumulates user input events for synchronous processing during the game loop frame update phase.

Link copied to clipboard
abstract val surfaceHeight: Int

Represents the height of the rendering surface in logical pixels.

Link copied to clipboard
abstract val surfaceWidth: Int

Represents the width of the rendering surface in logical pixels.

Functions

Link copied to clipboard
abstract fun dispose()

Disposes the surface view and releases all associated resources.