Options
Menu

Class ProgramWebGL

Hierarchy

  • ProgramWebGL

Implements

Index

Constructors

constructor

  • Parameters

    • gl: WebGLRenderingContext

    Returns ProgramWebGL

Accessors

glProgram

  • get (): WebGLProgram
  • Returns WebGLProgram

Methods

dispose

  • dispose(): void
  • Returns void

focusProgram

  • focusProgram(): void
  • Returns void

getAttribLocation

  • getAttribLocation(index: number): number
  • Parameters

    • index: number

    Returns number

getUniformLocation

  • getUniformLocation(programType: number, index?: number): WebGLUniformLocation
  • Parameters

    • programType: number
    • Default value index: number = -1

    Returns WebGLUniformLocation

upload

  • upload(vertexProgram: ByteArray, fragmentProgram: ByteArray): void
  • Parameters

    • vertexProgram: ByteArray
    • fragmentProgram: ByteArray

    Returns void

Generated using TypeDoc