Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • DebugRenderer

Index

Constructors

constructor

Properties

Private buffer

buffer: DebugDrawable[] = []

Readonly isDebug

isDebug: boolean = !(env === "production")

Is it debug build?

Static Private _instance

_instance: DebugRenderer

Accessors

Static Instance

Methods

draw

  • draw(): void

drawLine

  • drawLine(startPoint: Vector2, endPoint: Vector2, color?: string, lineWidth?: number): void

drawRect

  • drawRect(rect: Rect, color?: string, fill?: boolean): void
  • Parameters

    • rect: Rect
    • color: string = "rgb(0, 255, 0)"
    • fill: boolean = false

    Returns void

Generated using TypeDoc