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

Hierarchy

  • Renderer

Index

Constructors

constructor

  • new Renderer(canvas: HTMLCanvasElement): Renderer

Properties

cameras

cameras: Camera[] = []

canvas

canvas: HTMLCanvasElement = null

ext

fbos

fbos: FrameBuffer[] = []

fragPrecision

fragPrecision: string = "mediump"

frameRate

frameRate: number = 1000 / 60

gl

gl: WebGLRenderingContext = null

isAnimating

isAnimating: boolean = false

preloadRes

preloadRes: any[] = []

renderQueue

renderQueue: Array<function> = []

renderTargets

renderTargets: Texture[] = []

scenes

scenes: Scene[] = []

usedTextureNum

usedTextureNum: number = 0

vertPrecision

vertPrecision: string = "highp"

Methods

createFrameBuffer

handleResource

  • handleResource(scene: Scene): any

render

renderFBO

start

  • start(): void

stop

  • stop(): void

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