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