Options
All
  • Public
  • Public/Protected
  • All
Menu

Class RenderTarget

Hierarchy

  • RenderTarget

Index

Constructors

constructor

  • new RenderTarget(gl: WebGLRenderingContext, width: number, height: number, scaleMode: number, resolution: number, root?: boolean): RenderTarget
  • Parameters

    • gl: WebGLRenderingContext
    • width: number
    • height: number
    • scaleMode: number
    • resolution: number
    • Optional root: boolean

    Returns RenderTarget

Properties

clearColor

clearColor: number[]

defaultFrame

defaultFrame: Rectangle

destinationFrame

destinationFrame: Rectangle

filterData

filterData: object

Type declaration

frame

frame: Rectangle

frameBuffer

frameBuffer: GLFramebuffer

gl

gl: WebGLRenderingContext

projectionMatrix

projectionMatrix: Matrix

resolution

resolution: number

root

root: boolean

scaleMode

scaleMode: number

size

size: Rectangle

Optional sourceFrame

sourceFrame: Rectangle

stencilBuffer

stencilBuffer: GLFramebuffer

stencilMaskStack

stencilMaskStack: Graphics[]

texture

texture: Texture

transform

transform: Matrix

Methods

activate

  • activate(): void
  • Returns void

attachStencilBuffer

  • attachStencilBuffer(): void
  • Returns void

calculateProjection

  • Parameters

    Returns void

clear

  • clear(clearColor?: number[]): void
  • Parameters

    • Optional clearColor: number[]

    Returns void

destroy

  • destroy(): void
  • Returns void

resize

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

    • width: number
    • height: number

    Returns void

setFrame

  • Parameters

    Returns void

Generated using TypeDoc