Options
All
  • Public
  • Public/Protected
  • All
Menu

Class WorldLayerRenderer

Hierarchy

Implements

Index

Constructors

constructor

  • Parameters

    • gl: WebGL2RenderingContext
    • renderer: IWorldRenderer
    • worldLayer: IWorldLayer
    • width: number
    • height: number
    • positionBuffer: WebGLBuffer

    Returns WorldLayerRenderer

Properties

Readonly event

event: IEventEmitter<this, IWorldLayerRendererEvents> = new EventEmitter<this, E>(this)

Readonly gl

gl: WebGL2RenderingContext

height

height: number

Protected renderer

renderer: IWorldRenderer

texExplored

texExplored: WebGLTexture

texLightBlock

texLightBlock: WebGLTexture

texLightLevel

texLightLevel: WebGLTexture

width

width: number

Methods

addTileLayer

  • Parameters

    Returns void

clearBackgroundLayer

  • clearBackgroundLayer(layer: TileLayer, dataIndex: number): boolean
  • Parameters

    Returns boolean

clearForegroundLayer

  • clearForegroundLayer(layer: TileLayer, dataIndex: number): boolean
  • Parameters

    Returns boolean

clearLayer

  • clearLayer(layer: TileLayer, dataIndex: number): boolean
  • Parameters

    Returns boolean

getDataIndex

  • getDataIndex(x: number, y: number): number
  • Parameters

    • x: number
    • y: number

    Returns number

renderFullbright

  • renderFullbright(x: number, y: number, tileScale: number, viewWidth: number, viewHeight: number, renderFixedDepth: boolean, flags?: RenderLayerFlag): void
  • Parameters

    • x: number
    • y: number
    • tileScale: number
    • viewWidth: number
    • viewHeight: number
    • renderFixedDepth: boolean
    • Default value flags: RenderLayerFlag = RenderLayerFlag.All

    Returns void

setBackgroundLayer

  • Parameters

    Returns void

setBackgroundToForegroundLayer

  • setBackgroundToForegroundLayer(layer: TileLayer, dataIndex: number, tileAdaptation: ITileAdaptation, offset?: number): void
  • Parameters

    Returns void

setDoodad

  • setDoodad(x: number, y: number, doodadDescription: IDoodadDescription | undefined, doodad: DoodadType | undefined, doodadInfo: DoodadInfo | undefined, variationX: number, variationY: number, hasGraphicVariation: boolean, terrainMasks: TerrainMask, flushImmediate?: boolean): void
  • Parameters

    • x: number
    • y: number
    • doodadDescription: IDoodadDescription | undefined
    • doodad: DoodadType | undefined
    • doodadInfo: DoodadInfo | undefined
    • variationX: number
    • variationY: number
    • hasGraphicVariation: boolean
    • terrainMasks: TerrainMask
    • Default value flushImmediate: boolean = false

    Returns void

setForegroundLayer

  • Parameters

    Returns void

setLayer

  • Parameters

    Returns void

updateAll

  • updateAll(): void
  • Returns void

Generated using TypeDoc