Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • SwapRenderer

Index

Constructors

constructor

Properties

Private framebuffers

framebuffers: object

Type declaration

  • [key: string]: WebGLFramebuffer | null

Private gl

gl: WebGLRenderingContext

Private positionVbos

positionVbos: object

Type declaration

  • [key: string]: WebGLBuffer | null

Private programs

programs: object

Type declaration

  • [key: string]: object
    • id: WebGLProgram
    • uniforms: object
      • [key: string]: WebGLUniformLocation | null

Private textures

textures: object

Type declaration

  • [key: string]: WebGLTexture | null

Methods

createPositionVBO

  • createPositionVBO(name: string, scaleX?: number, scaleY?: number): void
  • Parameters

    • name: string
    • Default value scaleX: number = 1
    • Default value scaleY: number = 1

    Returns void

createProgram

  • createProgram(programName: string, vertexShader: string, fragmentShader: string): void
  • Parameters

    • programName: string
    • vertexShader: string
    • fragmentShader: string

    Returns void

getProgram

  • getProgram(programName: string): WebGLProgram

initDepthTexture

  • initDepthTexture(width: number, height: number): void

initFramebufferForTexture

  • initFramebufferForTexture(textureName: string): void

initTexture

  • initTexture(name: string, width: number, height: number, type: number): void

initTextureWithImage

  • initTextureWithImage(name: string, type: number, image: HTMLImageElement): void

reset

  • reset(): void

run

  • run(programName: string, inputNameArr: string[], outputName: string): void

setProgram

  • setProgram(programName: string): void

setSize

  • setSize(width: number, height: number): void

setUniform

  • setUniform(programName: string, name: string, val: number | number[] | Float32List, type: string): void
  • Parameters

    • programName: string
    • name: string
    • val: number | number[] | Float32List
    • type: string

    Returns void

swapTextures

  • swapTextures(texture1Name: string, texture2Name: string): void

updateVBO

  • updateVBO(name: string): void

use

  • use(programName: string): void

usePositionVBO

  • usePositionVBO(): void

Legend

  • Module
  • Object literal
  • Variable
  • Function
  • Function with type parameter
  • Index signature
  • Type alias
  • Type alias with type parameter
  • 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