Class CanvasRenderer

Index

Constructor methods

Properties

Methods

Constructor methods

constructor(parameters?: CanvasRendererParameters): CanvasRenderer

Parameters

Returns

CanvasRenderer

Properties

public autoClear: boolean

public devicePixelRatio: number

public domElement: HTMLCanvasElement

public info: { render: { vertices: number; faces: number; }; }

public info.render: { vertices: number; faces: number; }

public render.faces: number

public render.vertices: number

public sortElements: boolean

public sortObjects: boolean

Methods

public clear()

public getMaxAnisotropy(): number

Returns

number

public render(scene: Scene, camera: Camera)

Parameters

public setClearColor(color: Color, opacity?: number)

Parameters

  • color: Color
  • opacity?: number optional

public setClearColor(color: string, opacity?: number)

Parameters

  • color: string
  • opacity?: number optional

public setClearColor(color: number, opacity?: number)

Parameters

  • color: number
  • opacity?: number optional

public setClearColorHex(hex: number, alpha?: number)

Parameters

  • hex: number
  • alpha?: number optional

public setFaceCulling()

public setSize(width: number, height: number, updateStyle?: boolean)

Parameters

  • width: number
  • height: number
  • updateStyle?: boolean optional

public setViewport(x: number, y: number, width: number, height: number)

Parameters

  • x: number
  • y: number
  • width: number
  • height: number

public supportsVertexTextures()