From a65885d2bf8426641b7676e58429a991b5bf9f7b Mon Sep 17 00:00:00 2001 From: Archie Hilton Date: Sun, 26 May 2024 21:53:12 +0100 Subject: [PATCH] quad: Actually use the rotation member --- src/Quad.cc | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/Quad.cc b/src/Quad.cc index 96375a0..56c1ece 100644 --- a/src/Quad.cc +++ b/src/Quad.cc @@ -37,9 +37,8 @@ void Quad::draw(GLFWwindow *w) { glm::mat4 translate = glm::translate(glm::mat4(1.0f), glm::vec3(m_pos_x, m_pos_y, 0.0f)); - glm::mat4 rotate = - glm::rotate(glm::mat4(1.0f), (float)glfwGetTime() * glm::radians(50.0f), - glm::vec3(0.0f, 0.0f, 1.0f)); + glm::mat4 rotate = glm::rotate(glm::mat4(1.0f), glm::radians(m_rotation), + glm::vec3(0.0f, 0.0f, 1.0f)); glm::mat4 scale = glm::scale(glm::mat4(1.0f), glm::vec3(1.0f)); glm::mat4 model = translate * rotate * scale; glm::mat4 view = glm::mat4(1.0f);