Glm backward compatibility gtc extension

This commit is contained in:
brunoherbelin
2020-04-13 20:24:46 +02:00
parent c4c48a84b2
commit 1e9c8c013d
6 changed files with 15 additions and 15 deletions

View File

@@ -180,7 +180,7 @@ void drawScene()
scene.root_.update( static_cast<float>( GST_TIME_AS_MSECONDS(dt)) * 0.001f );
// draw in output frame buffer
glm::mat4 MV = glm::identity<glm::mat4>();
glm::mat4 MV = glm::mat4(1.f);
glm::mat4 P = glm::scale( glm::ortho(-5.f, 5.f, -5.f, 5.f), glm::vec3(1.f, output->aspectRatio(), 1.f));
output->begin();
scene.root_.draw(MV, P);
@@ -314,9 +314,9 @@ int main(int, char**)
}
// SessionVisitor savetoxml;
// scene.accept(savetoxml);
// savetoxml.save("/home/bhbn/test.vmx");
SessionVisitor savetoxml;
scene.accept(savetoxml);
savetoxml.save("/home/bhbn/test.vmx");
UserInterface::manager().Terminate();
Rendering::manager().Terminate();