Options
All
  • Public
  • Public/Protected
  • All
Menu

Class ManagedProgram

Hierarchy

Index

Constructors

constructor

  • new ManagedProgram(gl: WebGLRenderingContext, hash: number): ManagedProgram

Properties

destroyed

destroyed: boolean = false

gl

gl: WebGLRenderingContext

hash

hash: number

index

index: number

resourceReference

resourceReference: WebGLProgram

uniforms

uniforms: UniformProxy

Reference to uniform proxy which help you to pass uniform variables.

type

{UniformProxy}

validPromise

validPromise: Promise<GLResource<WebGLProgram>>

Accessors

isLastUsed

  • get isLastUsed(): boolean

metadata

  • get metadata(): object

valid

  • get valid(): boolean
  • set valid(val: boolean): void

Methods

destroy

  • destroy(): void

findAttributeLocation

  • findAttributeLocation(variableName: string): number

findUniformLocation

  • findUniformLocation(variableName: string): WebGLUniformLocation

release

  • release(): void

setMetadata

  • setMetadata(key: string, value: any): void

update

  • update(shaders: Shader[]): void
  • Update program with shader instance. The array might be set of vertex shader and fragment shader couple.

    Parameters

    Returns void

use

  • use(): void

Static getProgram

Generated using TypeDoc