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
DrawTriangle
DrawTriangle(pos1: Vec3, pos2: Vec3, pos3: Vec3, color1: Vec4, color2: Vec4, color3: Vec4)
Parameters
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
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
DrawOBB
DrawOBB(aabb: AxisAlignedBox, transform: LinearTransform, color: Vec4)
Parameters