Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Root

Root类

Hierarchy

  • Root

Index

Constructors

constructor

Properties

Private _cameraPool

_cameraPool: Pool<Camera> | null = null

_createSceneFun

_createSceneFun: any

_createViewFun

_createViewFun: any

Private _curWindow

_curWindow: GFXWindow | null = null

Private _dataPoolMgr

_dataPoolMgr: DataPoolManager

Private _device

_device: GFXDevice

Private _directLightPool

_directLightPool: Pool<DirectionalLight> | null = null

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<Function, Pool<any>> = new Map<Function, Pool<any>>()

Private _mainWindow

_mainWindow: GFXWindow | null = null

Private _modelPools

_modelPools: Map<Function, Pool<any>> = new Map<Function, Pool<any>>()

Private _pipeline

_pipeline: RenderPipeline | null = null

Private _scenes

_scenes: RenderScene[] = []

Private _sphereLightPool

_sphereLightPool: Pool<SphereLight> | null = null

Private _spotLightPool

_spotLightPool: Pool<SpotLight> | null = null

Private _tempWindow

_tempWindow: GFXWindow | null = null

Private _time

_time: number = 0

Private _ui

_ui: UI | null = null

Private _views

_views: RenderView[] = []

Private _windows

_windows: GFXWindow[] = []

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

views

windows

Methods

activeWindow

createCamera

  • createCamera(): Camera

createLight

  • createLight<T>(lClass: object): T

createModel

  • createModel<T>(mClass: object): 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

destroyView

destroyViews

  • destroyViews(): void

destroyWindow

destroyWindows

  • destroyWindows(): void

frameMove

  • frameMove(deltaTime: number): void

initialize

resetCumulativeTime

  • resetCumulativeTime(): void

resize

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

    Parameters

    • width: number

      屏幕宽度

    • height: number

      屏幕高度

    Returns void

setRenderPipeline

sortViews

  • sortViews(): void

Generated using TypeDoc