DebugRenderer

Summary

Methods

Method Returns
DrawLine(from: Vec3, to: Vec3, colorFrom: Vec4, colorTo: Vec4) void
DrawTriangle(pos1: Vec3, pos2: Vec3, pos3: Vec3, color1: Vec4, color2: Vec4, color3: Vec4) void
DrawSphere(pos: Vec3, radius: float, color: Vec4, renderLines: bool, smallSizeSegmentDecrease: bool) void
DrawLine2D(from: Vec2, to: Vec2, color: Vec4) void
DrawText2D(x: int, y: int, text: string, color: Vec4, scale: float) void
DrawVertices(type: DebugGeometryType, vertices: DebugVertex{}) void
DrawOBB(aabb: AxisAlignedBox, transform: LinearTransform, color: Vec4) void

Methods

DrawLine

DrawLine(from: Vec3, to: Vec3, colorFrom: Vec4, colorTo: Vec4)

Parameters

Name Type Description
from Vec3
to Vec3
colorFrom Vec4
colorTo Vec4

DrawTriangle

DrawTriangle(pos1: Vec3, pos2: Vec3, pos3: Vec3, color1: Vec4, color2: Vec4, color3: Vec4)

Parameters

Name Type Description
pos1 Vec3
pos2 Vec3
pos3 Vec3
color1 Vec4
color2 Vec4
color3 Vec4

DrawSphere

DrawSphere(pos: Vec3, radius: float, color: Vec4, renderLines: bool, smallSizeSegmentDecrease: bool)

Parameters

Name Type Description
pos Vec3
radius float
color Vec4
renderLines bool
smallSizeSegmentDecrease bool

DrawLine2D

DrawLine2D(from: Vec2, to: Vec2, color: Vec4)

Parameters

Name Type Description
from Vec2
to Vec2
color Vec4

DrawText2D

DrawText2D(x: int, y: int, text: string, color: Vec4, scale: float)

Parameters

Name Type Description
x int
y int
text string
color Vec4
scale float

DrawVertices

DrawVertices(type: DebugGeometryType, vertices: DebugVertex{})

Parameters

Name Type Description
type DebugGeometryType
vertices DebugVertex{}

DrawOBB

DrawOBB(aabb: AxisAlignedBox, transform: LinearTransform, color: Vec4)

Parameters

Name Type Description
aabb AxisAlignedBox
transform LinearTransform
color Vec4
Last modified April 27, 2020: Regenerate all API documentation (0b49d6be)