Skip to content

Commit 701c4f4

Browse files
committed
Reimplemented grid display for editor controller
1 parent 750a529 commit 701c4f4

File tree

2 files changed

+1
-8
lines changed

2 files changed

+1
-8
lines changed

examples/game/src/tools/EditorController.cpp

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -25,12 +25,6 @@ static float ROTATE_LEVELS[] = {.01f, .1f, 1.f, 15.f, 45.f, 90.f};
2525
// Define colours
2626
static Siege::IColour BRIGHT_PINK(255, 5, 146);
2727

28-
void EditorController::OnStart()
29-
{
30-
31-
// if (isGridActive) DrawGrid(100, 1.0f);
32-
}
33-
3428
void EditorController::OnUpdate()
3529
{
3630
// The editor should not be able to receive input while the console is open
@@ -213,6 +207,7 @@ void EditorController::OnDraw2D()
213207

214208
void EditorController::OnDraw3D()
215209
{
210+
Siege::Renderer3D::SetGridEnabled(isGridActive);
216211

217212
if (selectedEntity)
218213
{

examples/game/src/tools/EditorController.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,8 +60,6 @@ class EditorController : public Siege::Entity
6060

6161
// Protected overrides
6262

63-
void OnStart() override;
64-
6563
void OnUpdate() override;
6664

6765
void OnDraw2D() override;

0 commit comments

Comments
 (0)