Skip to content

Commit

Permalink
[#98]: Remove Window::Clear as it's no longer used
Browse files Browse the repository at this point in the history
  • Loading branch information
JacobDomagala committed Jul 9, 2023
1 parent fce09e0 commit e044d27
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 9 deletions.
2 changes: 2 additions & 0 deletions editor/editor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -976,6 +976,8 @@ Editor::SetLockAnimationPoints(bool lock)
void
Editor::Update()
{
HandleCamera();

if (m_animateGameObject && m_currentSelectedGameObject)
{
auto moveBy = std::dynamic_pointer_cast< Animatable >(m_currentSelectedGameObject)
Expand Down
1 change: 0 additions & 1 deletion engine/game/game.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ Game::MainLoop()

while (IsRunning() and (singleFrameTimer.count() >= TARGET_TIME_MICRO))
{
m_window->Clear();
const auto dt = time::milliseconds(
TARGET_TIME_MS * static_cast< float >(time::Timer::AreTimersRunning()));
ProcessInput(dt);
Expand Down
8 changes: 0 additions & 8 deletions engine/renderer/window/window.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -64,14 +64,6 @@ Window::Resize(int32_t newWidth, int32_t newHeight)
m_width = newWidth;
}

void
Window::Clear()
{
// glfwMakeContextCurrent(m_pWindow);

// RenderCommand::Clear();
}

void
Window::ShowCursor(bool choice)
{
Expand Down

0 comments on commit e044d27

Please sign in to comment.