Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Root

Root类

Hierarchy

  • Root

Index

Constructors

constructor

Properties

Private _cameraPool

_cameraPool: Pool<Camera> | null = null

Private _cameras

_cameras: Camera[] = []

createSceneFun

createSceneFun: (root: Root) => RenderScene = null!

Type declaration

    • (root: Root): RenderScene
    • Parameters

      Returns RenderScene

createWindowFun

createWindowFun: (root: Root) => RenderWindow = null!

Type declaration

Private _curWindow

_curWindow: RenderWindow | null = null

Private _dataPoolMgr

_dataPoolMgr: DataPoolManager

Private _device

_device: GFXDevice

Private _fixedFPS

_fixedFPS: number = 0

Private _fixedFPSFrameTime

_fixedFPSFrameTime: number = 0

Private _fps

_fps: number = 0

Private _fpsTime

_fpsTime: number = 0

Private _frameCount

_frameCount: number = 0

Private _frameTime

_frameTime: number = 0

Private lightPools

lightPools: Map<{}, Pool<Light>> = new Map<Constructor<Light>, Pool<Light>>()

Private _mainWindow

_mainWindow: RenderWindow | null = null

Private modelPools

modelPools: Map<{}, Pool<Model>> = new Map<Constructor<Model>, Pool<Model>>()

Private _pipeline

_pipeline: RenderPipeline | null = null

Private _scenes

_scenes: RenderScene[] = []

Private _tempWindow

_tempWindow: RenderWindow | null = null

Private _time

_time: number = 0

Private _ui

_ui: UI | null = null

Private _views

_views: RenderView[] = []

Private _windows

_windows: RenderWindow[] = []

Accessors

cumulativeTime

  • get cumulativeTime(): number

curWindow

dataPoolManager

  • get dataPoolManager(): DataPoolManager

device

fixedFPS

  • get fixedFPS(): number
  • set fixedFPS(fps: number): void

fps

  • get fps(): number

frameCount

  • get frameCount(): number

frameTime

  • get frameTime(): number

mainWindow

pipeline

scenes

  • get scenes(): RenderScene[]

tempWindow

ui

  • get ui(): UI

windows

Methods

activeWindow

attachCamera

  • attachCamera(camera: Camera): void

clearCameras

  • clearCameras(): void

createCamera

  • createCamera(): Camera

createLight

  • createLight<T>(lClass: {}): T

createModel

  • createModel<T>(mClass: typeof Model): T

createScene

  • createScene(info: IRenderSceneInfo): RenderScene
  • 创建渲染场景

    Parameters

    • info: IRenderSceneInfo

      渲染场景描述信息

    Returns RenderScene

createView

createWindow

destroy

  • destroy(): void

destroyCamera

  • destroyCamera(c: Camera): void

destroyLight

  • destroyLight(l: Light): void

destroyModel

  • destroyModel(m: Model): void

destroyScene

  • destroyScene(scene: RenderScene): void
  • 销毁指定的渲染场景

    Parameters

    • scene: RenderScene

      渲染场景

    Returns void

destroyScenes

  • destroyScenes(): void

destroyWindow

destroyWindows

  • destroyWindows(): void

detachCamera

  • detachCamera(camera: Camera): void

frameMove

  • frameMove(deltaTime: number): void

initialize

onGlobalPipelineStateChanged

  • onGlobalPipelineStateChanged(): void

resetCumulativeTime

  • resetCumulativeTime(): void

resize

  • resize(width: number, height: number): void
  • 重置大小

    Parameters

    • width: number

      屏幕宽度

    • height: number

      屏幕高度

    Returns void

setRenderPipeline

sortViews

  • sortViews(): void

Generated using TypeDoc