Options
All
  • Public
  • Public/Protected
  • All
Menu

Class TglContext

Hierarchy

  • TglContext

Index

Constructors

constructor

  • new TglContext(canvas: HTMLCanvasElement, options?: WebGLContextAttributes): TglContext

Properties

Private _canvas

_canvas: HTMLCanvasElement

Private _elementArrayBuffer

_elementArrayBuffer: WebGLBuffer

Private _gl

_gl: WebGLRenderingContext

Accessors

activeTexture

  • get activeTexture(): number
  • set activeTexture(value: number): void

blendColor

  • get blendColor(): Object
  • set blendColor(value: [number, number, number, number]): void

blendEquation

blendEquationAlpha

blendEquationRgb

blendingEnabled

  • get blendingEnabled(): boolean
  • set blendingEnabled(value: boolean): void

canvas

  • get canvas(): HTMLCanvasElement

clearColor

  • get clearColor(): Object
  • set clearColor(value: [number, number, number, number]): void

clearDepth

  • get clearDepth(): number
  • set clearDepth(value: number): void

clearStencil

  • get clearStencil(): number
  • set clearStencil(value: number): void

colorMask

  • get colorMask(): Object
  • set colorMask(value: [boolean, boolean, boolean, boolean]): void

cullFaceMode

depthTestEnabled

  • get depthTestEnabled(): boolean
  • set depthTestEnabled(value: boolean): void

ditherEnabled

  • get ditherEnabled(): boolean
  • set ditherEnabled(value: boolean): void

faceCullingEnabled

  • get faceCullingEnabled(): boolean
  • set faceCullingEnabled(value: boolean): void

polygonOffsetFillEnabled

  • get polygonOffsetFillEnabled(): boolean
  • set polygonOffsetFillEnabled(value: boolean): void

sampleAlphaToCoverageEnabled

  • get sampleAlphaToCoverageEnabled(): boolean
  • set sampleAlphaToCoverageEnabled(value: boolean): void

sampleCoverageEnabled

  • get sampleCoverageEnabled(): boolean
  • set sampleCoverageEnabled(value: boolean): void

scissorTestEnabled

  • get scissorTestEnabled(): boolean
  • set scissorTestEnabled(value: boolean): void

stencilTestEnabled

  • get stencilTestEnabled(): boolean
  • set stencilTestEnabled(value: boolean): void

webGlRenderingContext

  • get webGlRenderingContext(): WebGLRenderingContext

Methods

checkErrors

  • checkErrors(): void

clear

Generated using TypeDoc