Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Renderable

Hierarchy

Index

Constructors

Protected constructor

Properties

Private Readonly _renderableIndex

_renderableIndex: number

Static Private _nextRenderableIndex

_nextRenderableIndex: number = 1

Static Private Readonly _pixelwiseDataTarget

_pixelwiseDataTarget: WebGLRenderTarget = new WebGLRenderTarget(0, 0,{minFilter: NearestFilter,magFilter: NearestFilter,depthBuffer: true,stencilBuffer: false,format: RGBAFormat,type: FloatType,generateMipmaps: false})

Accessors

Protected renderableIndex

  • get renderableIndex(): number

Static pixelwiseDataTarget

  • get pixelwiseDataTarget(): WebGLRenderTarget

Methods

Abstract clickLeft

  • clickLeft(x: number, y: number, s: Stage): boolean

Abstract downLeft

  • downLeft(x: number, y: number, s: Stage): boolean

Abstract dragLeft

  • dragLeft(x: number, y: number, s: Stage): boolean

Protected getPixel

  • getPixel(x: number, y: number, r: WebGLRenderer): null | Vector3

Abstract hover

  • hover(x: number, y: number, s: Stage): boolean

Abstract render

  • render(r: WebGLRenderer, camera: PerspectiveCamera | OrthographicCamera, target: WebGLRenderTarget | null, superSampleIndex: number): void
  • TODO write doc

    Parameters

    • r: WebGLRenderer
    • camera: PerspectiveCamera | OrthographicCamera
    • target: WebGLRenderTarget | null
    • superSampleIndex: number

      The index of the superSample pass; or -1 if no superSample is taking place

    Returns void

Abstract setSize

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

Abstract upLeft

  • upLeft(x: number, y: number, s: Stage): boolean

Generated using TypeDoc