MCPcopy Create free account
hub / github.com/OpenNFS/OpenNFS / update

Method update

src/Scene/Sound.cpp:40–47  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

38}
39
40void 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
49void Sound::destroy() {
50 glDeleteBuffers(1, &vertexbuffer);

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected