Jeffery Myers 3 年之前
父节点
当前提交
b34981d762
共有 1 个文件被更改,包括 1 次插入4 次删除
  1. 1 4
      examples/editor.cpp

+ 1 - 4
examples/editor.cpp

@@ -250,8 +250,6 @@ public:
             // draw the view
             // draw the view
             rlImGuiImageRect(&ViewTexture.texture, (int)size.x, (int)size.y, viewRect);
             rlImGuiImageRect(&ViewTexture.texture, (int)size.x, (int)size.y, viewRect);
 
 
-            ImGui::SetCursorPos(ImVec2(0, 0));
-
             ImGui::End();
             ImGui::End();
         }
         }
         ImGui::PopStyleVar();
         ImGui::PopStyleVar();
@@ -271,7 +269,7 @@ public:
         float period = 10;
         float period = 10;
         float magnitude = 25;
         float magnitude = 25;
 
 
-        Camera.position.x = sinf(GetTime() / period) * magnitude;
+        Camera.position.x = (float)(sinf(GetTime() / period) * magnitude);
 
 
         BeginTextureMode(ViewTexture);
         BeginTextureMode(ViewTexture);
         ClearBackground(SKYBLUE);
         ClearBackground(SKYBLUE);
@@ -299,7 +297,6 @@ public:
 
 
         EndMode3D();
         EndMode3D();
         EndTextureMode();
         EndTextureMode();
- 
     }
     }
 
 
     Texture2D GridTexture = { 0 };
     Texture2D GridTexture = { 0 };