Constructors
constructor
Parameters
Properties
Private _bufferClearFlag
_bufferClearFlag: any
Private _gla
_gla: any
Private _initPlugins
_initPlugins: any
Private _pluginManager
_pluginManager: any
Private _tick
_tick: any
Private _tick2d
_tick2d: any
Private _viewport
_viewport: any
hooks
Accessors
canvas
gla
pluginManager
Methods
addPlugin
Type Parameters
Parameters
clear
Returns void
destroy
Returns void
disableBufferClear
- disableBufferClear(): void
Returns void
enableBufferClear
- enableBufferClear(): void
Returns void
resize
- resize(width?: number, height?: number, pixelRatio?: number): void
Parameters
Optional width: number
Optional height: number
Optional pixelRatio: number
Returns void
setViewport
- setViewport(x: number, y: number, width: number, height: number): void
Parameters
x: number
y: number
width: number
height: number
Returns void
tick
Parameters
Optional deltaTime: number
Returns void
渲染3D场景