Properties
Private _loadedObjectsCount
_loadedObjectsCount: number = 0
Private _loadedTexturesCount
_loadedTexturesCount: number = 0
Private _objectsLoaded
_objectsLoaded: boolean = false
Private _objectsWithAlpha
_objects
WithAlpha: Array<Entity> = []
Private _objectsWithoutAlpha
_objects
WithoutAlpha: Array<Entity> = []
Private _onFrameHandlers
_onFrameHandlers: Array<Function> = []
Private _onObjectSelectedHandlers
_onObjectSelectedHandlers: Array<Function> = []
Private _onResourcesLoadedHandlers
_onResourcesLoadedHandlers: Array<Function> = []
Private _onRun
_onRun: Array<Function> = []
Private _resourcesLoaded
_resourcesLoaded: boolean = false
Private _running
_running: boolean = false
Private _texturesLoaded
_texturesLoaded: boolean = false
canvas
canvas: HTMLCanvasElement
globalLightMinValue
globalLightMinValue: number = 0.5
lights
lights
: Array<Light> = []
lightsPositions
lightsPositions: Array<number> = []
lightsRanges
lightsRanges: Array<number> = []
reflections
reflections: boolean = false
selectedObject
selected
Object: Entity | null = null
status
status: string = "Creating"
webgl
webgl: WebGLRenderingContext
Function should be executed when object loaded and ready to use.