Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Uniform

An uniform variable.

Hierarchy

  • Uniform

Index

Constructors

constructor

  • new Uniform(name: string): Uniform

Properties

Protected _flushData

_flushData: function

Type declaration

    • (context: WebGL2RenderingContext, location: WebGLUniformLocation): void
    • Parameters

      • context: WebGL2RenderingContext
      • location: WebGLUniformLocation

      Returns void

Protected _glContext

_glContext: WebGL2RenderingContext | null

Protected _glProgram

_glProgram: WebGLProgram | null

Protected _location

_location: WebGLUniformLocation | null

Protected _name

_name: string

Accessors

isLocated

  • get isLocated(): boolean

Methods

_flush

  • _flush(): void

_init

  • _init(context: WebGL2RenderingContext, program: WebGLProgram): void
  • Parameters

    • context: WebGL2RenderingContext
    • program: WebGLProgram

    Returns void

setMatrix

  • setMatrix(value: Float32Array): void
  • Sets the uniform variable to the matrix.

    Parameters

    • value: Float32Array

    Returns void

setMatrix2

  • setMatrix2(value: Float32Array): void

setMatrix3

  • setMatrix3(value: Float32Array): void

setMatrix4

  • setMatrix4(value: Float32Array): void

setValue

  • setValue(value: number, type: number): void
  • Sets the uniform variable to the value.

    Parameters

    • value: number
    • type: number

    Returns void

setVector

setVector1

setVector2

setVector3

setVector4

Generated using TypeDoc