| 40 | |
| 41 | |
| 42 | void Quad::update() { |
| 43 | orientation_vec = glm::vec3(-SIMD_HALF_PI,0,0); |
| 44 | orientation = glm::normalize(glm::quat(orientation_vec)); |
| 45 | RotationMatrix = glm::toMat4(orientation); |
| 46 | //Rotate around center |
| 47 | TranslationMatrix = glm::translate(glm::mat4(1.0), position); |
| 48 | ModelMatrix = TranslationMatrix * RotationMatrix; |
| 49 | } |
| 50 | |
| 51 | void Quad::destroy() { |
| 52 | glDeleteBuffers(1, &vertexbuffer); |
no outgoing calls
no test coverage detected