Options
All
  • Public
  • Public/Protected
  • All
Menu

Class b2Draw

Hierarchy

  • b2Draw

Index

Properties

m_drawFlags

m_drawFlags: b2DrawFlags = 0

Methods

AppendFlags

  • Parameters

    Returns void

ClearFlags

  • Parameters

    Returns void

Abstract DrawCircle

  • DrawCircle(center: XY, radius: number, color: RGBA): void
  • Parameters

    • center: XY
    • radius: number
    • color: RGBA

    Returns void

Abstract DrawParticles

  • DrawParticles(centers: XY[], radius: number, colors: RGBA[] | null, count: number): void
  • Parameters

    • centers: XY[]
    • radius: number
    • colors: RGBA[] | null
    • count: number

    Returns void

Abstract DrawPoint

  • DrawPoint(p: XY, size: number, color: RGBA): void
  • Parameters

    • p: XY
    • size: number
    • color: RGBA

    Returns void

Abstract DrawPolygon

  • DrawPolygon(vertices: XY[], vertexCount: number, color: RGBA): void
  • Parameters

    • vertices: XY[]
    • vertexCount: number
    • color: RGBA

    Returns void

Abstract DrawSegment

  • DrawSegment(p1: XY, p2: XY, color: RGBA): void
  • Parameters

    Returns void

Abstract DrawSolidCircle

  • DrawSolidCircle(center: XY, radius: number, axis: XY, color: RGBA): void
  • Parameters

    • center: XY
    • radius: number
    • axis: XY
    • color: RGBA

    Returns void

Abstract DrawSolidPolygon

  • DrawSolidPolygon(vertices: XY[], vertexCount: number, color: RGBA): void
  • Parameters

    • vertices: XY[]
    • vertexCount: number
    • color: RGBA

    Returns void

Abstract DrawTransform

  • Parameters

    Returns void

GetFlags

  • Returns b2DrawFlags

Abstract PopTransform

  • Parameters

    Returns void

Abstract PushTransform

  • Parameters

    Returns void

SetFlags

  • Parameters

    Returns void

Generated using TypeDoc