Skip to main content
Version: 4.1.0

CatalogWebGLService

Index

Properties

readonlygl

gl: WebGL2RenderingContext

shaderUniforms

shaderUniforms: ShaderUniforms

Accessors

staticInstance

  • get Instance(): CatalogWebGLService
  • Returns CatalogWebGLService

Methods

publicclearTexture

  • clearTexture(fileId: number): void
  • Parameters

    • fileId: number

    Returns void

publicgetDataTexture

  • getDataTexture(fileId: number, textureType: CatalogTextureType): WebGLTexture
  • Parameters

    • fileId: number
    • textureType: CatalogTextureType

    Returns WebGLTexture

publicsetCanvasSize

  • setCanvasSize(width: number, height: number): void
  • Parameters

    • width: number
    • height: number

    Returns void

publicupdateDataTexture

  • updateDataTexture(fileId: number, dataPoints: Uint8Array | Float32Array, textureType: CatalogTextureType): void
  • Parameters

    • fileId: number
    • dataPoints: Uint8Array | Float32Array
    • textureType: CatalogTextureType

    Returns void

publicupdatePositionArray

  • updatePositionArray(fileId: number, dataPoints: Float32Array, offset: number): void
  • Parameters

    • fileId: number
    • dataPoints: Float32Array
    • offset: number

    Returns void

publicupdatePositionTexture

  • updatePositionTexture(fileId: number): boolean
  • Parameters

    • fileId: number

    Returns boolean