mirror of
https://github.com/brunoherbelin/vimix.git
synced 2025-12-09 01:09:59 +01:00
Glm backward compatibility gtc extension
This commit is contained in:
8
main.cpp
8
main.cpp
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user