DrawPoint3D(): PR review
This commit is contained in:
parent
5d27c1e6c9
commit
2783d0d63e
1 changed files with 10 additions and 11 deletions
|
@ -111,19 +111,18 @@ void DrawLine3D(Vector3 startPos, Vector3 endPos, Color color)
|
||||||
}
|
}
|
||||||
|
|
||||||
// Draw a point in 3D space--actually a small line.
|
// Draw a point in 3D space--actually a small line.
|
||||||
void DrawPoint3D(Vector3 pos, Color color) {
|
void DrawPoint3D(Vector3 position, Color color)
|
||||||
|
{
|
||||||
if (rlCheckBufferLimit(8)) rlglDraw();
|
if (rlCheckBufferLimit(8)) rlglDraw();
|
||||||
|
|
||||||
rlPushMatrix();
|
rlPushMatrix();
|
||||||
rlTranslatef(pos.x,pos.y,pos.z);
|
rlTranslatef(position.x, position.y, position.z);
|
||||||
rlBegin(RL_LINES);
|
rlBegin(RL_LINES);
|
||||||
rlColor4ub(color.r, color.g, color.b, color.a);
|
rlColor4ub(color.r, color.g, color.b, color.a);
|
||||||
rlVertex3f(0.0,0.0,0.0);
|
rlVertex3f(0.0,0.0,0.0);
|
||||||
rlVertex3f(0.0,0.0,0.1);
|
rlVertex3f(0.0,0.0,0.1);
|
||||||
rlEnd();
|
rlEnd();
|
||||||
rlPopMatrix();
|
rlPopMatrix();
|
||||||
|
|
||||||
return;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// Draw a circle in 3D world space
|
// Draw a circle in 3D world space
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue