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

Method update

src/Scene/Quad.cpp:42–49  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

40
41
42void 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
51void Quad::destroy() {
52 glDeleteBuffers(1, &vertexbuffer);

Callers 5

renderTrackMethod · 0.45
renderShadowMapMethod · 0.45
RenderMethod · 0.45
RenderMethod · 0.45
SkyRendererMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected