瀏覽代碼

REMOVED: DrawGizmo()

This is a very simple and specific implementation that should be better addressed by the users
pull/1676/head
Ray 3 年之前
父節點
當前提交
9bea64b5e4
共有 2 個文件被更改,包括 0 次插入24 次删除
  1. +0
    -23
      src/models.c
  2. +0
    -1
      src/raylib.h

+ 0
- 23
src/models.c 查看文件

@ -693,29 +693,6 @@ void DrawGrid(int slices, float spacing)
rlEnd();
}
// Draw gizmo
void DrawGizmo(Vector3 position)
{
// NOTE: RGB = XYZ
float length = 1.0f;
rlPushMatrix();
rlTranslatef(position.x, position.y, position.z);
rlScalef(length, length, length);
rlBegin(RL_LINES);
rlColor3f(1.0f, 0.0f, 0.0f); rlVertex3f(0.0f, 0.0f, 0.0f);
rlColor3f(1.0f, 0.0f, 0.0f); rlVertex3f(1.0f, 0.0f, 0.0f);
rlColor3f(0.0f, 1.0f, 0.0f); rlVertex3f(0.0f, 0.0f, 0.0f);
rlColor3f(0.0f, 1.0f, 0.0f); rlVertex3f(0.0f, 1.0f, 0.0f);
rlColor3f(0.0f, 0.0f, 1.0f); rlVertex3f(0.0f, 0.0f, 0.0f);
rlColor3f(0.0f, 0.0f, 1.0f); rlVertex3f(0.0f, 0.0f, 1.0f);
rlEnd();
rlPopMatrix();
}
// Load model from files (mesh and material)
Model LoadModel(const char *fileName)
{

+ 0
- 1
src/raylib.h 查看文件

@ -1352,7 +1352,6 @@ RLAPI void DrawCylinderWires(Vector3 position, float radiusTop, float radiusBott
RLAPI void DrawPlane(Vector3 centerPos, Vector2 size, Color color); // Draw a plane XZ
RLAPI void DrawRay(Ray ray, Color color); // Draw a ray line
RLAPI void DrawGrid(int slices, float spacing); // Draw a grid (centered at (0, 0, 0))
RLAPI void DrawGizmo(Vector3 position); // Draw simple gizmo
//------------------------------------------------------------------------------------
// Model 3d Loading and Drawing Functions (Module: models)

Loading…
取消
儲存