canvas-toy
Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • Program

Implements

Index

Constructors

constructor

Properties

attribute0

attribute0: string

attributeLocations

attributeLocations: object

Type declaration

attributes

attributes: object

Type declaration

definesFromMaterial

definesFromMaterial: string[] = []

enableDepthTest

enableDepthTest: boolean = true

enableStencilTest

enableStencilTest: boolean = true

extensionStatements

extensionStatements: string[] = []

faces

faces: function

Type declaration

fragmentPrecision

fragmentPrecision: string = "mediump"

gl

gl: WebGLRenderingContext

textures

textures: Array<object> = []

uniformLocationCache

uniformLocationCache: object

Type declaration

uniforms

uniforms: object

Type declaration

vertexPrecision

vertexPrecision: string = "highp"

webGlProgram

webGlProgram: WebGLProgram

Methods

addAttribute

  • addAttribute(nameInShader: string, attributeFun: function): this

addTexture

  • addTexture(sampler: string, getter: function): void
  • Parameters

    • sampler: string
    • getter: function
        • (mesh: any, camera: any, material: any): Texture
        • Parameters

          • mesh: any
          • camera: any
          • material: any

          Returns Texture

    Returns void

addUniform

  • addUniform(nameInShader: any, uniform: IUniform): this

checkState

  • checkState(mesh: Mesh): this

deleteAttribute

  • deleteAttribute(nameInShader: string): this

deleteUniform

  • deleteUniform(nameInShader: any): this

drawMode

  • drawMode(gl: WebGLRenderingContext): number

make

  • make(scene: Scene): this

pass

resetMaterialDefines

  • resetMaterialDefines(materiel: Material): void

setAttribute0

  • setAttribute0(name: string): this

setFragmentShader

  • setFragmentShader(fragmentShader: string): this

setVertexShader

  • setVertexShader(vertexShader: string): this

Legend

  • Module
  • Object literal
  • Variable
  • Function
  • Function with type parameter
  • Index signature
  • Type alias
  • Enumeration
  • Enumeration member
  • Property
  • Method
  • Interface
  • Interface with type parameter
  • Constructor
  • Property
  • Method
  • Index signature
  • Class
  • Class with type parameter
  • Constructor
  • Property
  • Method
  • Accessor
  • Index signature
  • Inherited constructor
  • Inherited property
  • Inherited method
  • Inherited accessor
  • Protected property
  • Protected method
  • Protected accessor
  • Private property
  • Private method
  • Private accessor
  • Static property
  • Static method

Generated using TypeDoc