浏览代码

DrawPoint3D(): PR review

pull/1022/head
Ray 5 年前
父节点
当前提交
2783d0d63e
共有 1 个文件被更改,包括 10 次插入11 次删除
  1. +10
    -11
      src/models.c

+ 10
- 11
src/models.c 查看文件

@ -110,20 +110,19 @@ void DrawLine3D(Vector3 startPos, Vector3 endPos, Color color)
rlEnd();
}
//Draw a point in 3D space--actually a small line.
void f">DrawPoint3D(Vector3 pos, Color color) {
// Draw a point in 3D space--actually a small line.
void DrawPoint3D(Vector3 position, Color color)
{
if (rlCheckBufferLimit(8)) rlglDraw();
rlPushMatrix();
rlTranslatef(pos.x,pos.y,pos.z);
rlBegin(RL_LINES);
rlColor4ub(color.r, color.g, color.b, color.a);
rlVertex3f(0.0,0.0,0.0);
rlVertex3f(0.0,0.0,0.1);
rlEnd();
rlTranslatef(position.x, position.y, position.z);
rlBegin(RL_LINES);
rlColor4ub(color.r, color.g, color.b, color.a);
rlVertex3f(0.0,0.0,0.0);
rlVertex3f(0.0,0.0,0.1);
rlEnd();
rlPopMatrix();
return;
}
// Draw a circle in 3D world space

正在加载...
取消
保存