Skip to content
Permalink
Browse files

Updated Sandbox2D

  • Loading branch information
TheCherno committed Mar 25, 2020
1 parent 681c72f commit 3ffe9d298c784f4233379d794197c8d7cfc4b520
Showing with 2 additions and 2 deletions.
  1. +2 −2 Sandbox/src/Sandbox2D.cpp
@@ -38,9 +38,9 @@ void Sandbox2D::OnUpdate(Hazel::Timestep ts)
{
HZ_PROFILE_SCOPE("Renderer Draw");
Hazel::Renderer2D::BeginScene(m_CameraController.GetCamera());
Hazel::Renderer2D::DrawQuad({ -1.0f, 0.0f }, { 0.8f, 0.8f }, { 0.8f, 0.2f, 0.3f, 1.0f });
Hazel::Renderer2D::DrawRotatedQuad({ -1.0f, 0.0f }, { 0.8f, 0.8f }, glm::radians(-45.0f), { 0.8f, 0.2f, 0.3f, 1.0f });
Hazel::Renderer2D::DrawQuad({ 0.5f, -0.5f }, { 0.5f, 0.75f }, { 0.2f, 0.3f, 0.8f, 1.0f });
Hazel::Renderer2D::DrawQuad({ 0.0f, 0.0f, -0.1f }, { 10.0f, 10.0f }, m_CheckerboardTexture);
Hazel::Renderer2D::DrawQuad({ 0.0f, 0.0f, -0.1f }, { 10.0f, 10.0f }, m_CheckerboardTexture, 10.0f);
Hazel::Renderer2D::EndScene();
}
}

0 comments on commit 3ffe9d2

Please sign in to comment.
You can’t perform that action at this time.