Options
All
  • Public
  • Public/Protected
  • All
Menu

Class GeometryRenderer

Hierarchy

  • GeometryRenderer

Index

Properties

Static defaultAssets

defaultAssets: object[] = [{path: "Assets/DefaultAssets/Materials/Geometry.Material",set: (asset: Asset) => Private.material = asset as Material,get: () => Private.material}]

Methods

Static applyProjectionMatrix

  • applyProjectionMatrix(projection: Matrix44): void

Static begin

  • begin(): boolean

Static draw2DCross

  • draw2DCross(x: number, y: number, size: number, color: Color, matrix: Matrix44): void

Static draw2DRect

  • draw2DRect(minX: number, minY: number, maxX: number, maxY: number, color: Color, matrix: Matrix44): void

Static drawAABB

Static drawBillboard

Static drawBox

Static drawCircle

Static drawCone

  • drawCone(radius: number, height: number, distFromOrigin: number, forward: Vector3, up: Vector3, color: Color, worldPosition: Vector3): void

Static drawCross

Static drawLine

Static drawPlane

Static drawQuad

Static drawSphere

Static init

  • init(): Promise<void>

Static setViewMatrix

Static unload

  • unload(): void