Options
All
  • Public
  • Public/Protected
  • All
Menu

Class GLFramebuffer

Hierarchy

  • GLFramebuffer

Index

Constructors

constructor

  • new GLFramebuffer(gl: WebGLRenderingContext, width: number, height: number): GLFramebuffer
  • Parameters

    • gl: WebGLRenderingContext
    • width: number
    • height: number

    Returns GLFramebuffer

Properties

frameBuffer

frameBuffer: WebGLFramebuffer

gl

gl: WebGLRenderingContext

height

height: number

stencil

stencil: WebGLRenderbuffer

texture

texture: GLTexture

width

width: number

Methods

bind

  • bind(): void
  • Returns void

clear

  • clear(r: number, g: number, b: number, a: number): void
  • Parameters

    • r: number
    • g: number
    • b: number
    • a: number

    Returns void

destroy

  • destroy(): void
  • Returns void

enableStencil

  • enableStencil(): void
  • Returns void

enableTexture

  • Parameters

    Returns void

resize

  • resize(width: number, height: number): void
  • Parameters

    • width: number
    • height: number

    Returns void

unbind

  • unbind(): void
  • Returns void

Static createFloat32

  • createFloat32(gl: WebGLRenderingContext, width: number, height: number, data: ArrayBuffer | ArrayBufferView | any): GLFramebuffer
  • Parameters

    • gl: WebGLRenderingContext
    • width: number
    • height: number
    • data: ArrayBuffer | ArrayBufferView | any

    Returns GLFramebuffer

Static createRGBA

  • createRGBA(gl: WebGLRenderingContext, width: number, height: number, data: ArrayBuffer | ArrayBufferView | any): GLFramebuffer
  • Parameters

    • gl: WebGLRenderingContext
    • width: number
    • height: number
    • data: ArrayBuffer | ArrayBufferView | any

    Returns GLFramebuffer

Generated using TypeDoc