diff --git a/examples/ExampleBrowser/OpenGLExampleBrowser.cpp b/examples/ExampleBrowser/OpenGLExampleBrowser.cpp index cc93eeff7..64eb707a9 100644 --- a/examples/ExampleBrowser/OpenGLExampleBrowser.cpp +++ b/examples/ExampleBrowser/OpenGLExampleBrowser.cpp @@ -223,7 +223,7 @@ void MyKeyboardCallback(int key, int state) b3MouseMoveCallback prevMouseMoveCallback = 0; static void MyMouseMoveCallback( float x, float y) { - bool handled = false; + bool handled = false; if (sCurrentDemo) handled = sCurrentDemo->mouseMoveCallback(x,y); if (!handled && gui) diff --git a/examples/OpenGLWindow/GLInstancingRenderer.cpp b/examples/OpenGLWindow/GLInstancingRenderer.cpp index e54d073cb..64503dcc3 100644 --- a/examples/OpenGLWindow/GLInstancingRenderer.cpp +++ b/examples/OpenGLWindow/GLInstancingRenderer.cpp @@ -956,6 +956,8 @@ void GLInstancingRenderer::updateCamera(int upAxis) m_data->m_activeCamera->setCameraUpAxis(upAxis); m_data->m_activeCamera->setAspectRatio((float)m_screenWidth/(float)m_screenHeight); m_data->m_defaultCamera1.update(); + m_data->m_activeCamera->getCameraProjectionMatrix(m_data->m_projectionMatrix); + m_data->m_activeCamera->getCameraViewMatrix(m_data->m_viewMatrix); } diff --git a/examples/RoboticsLearning/R2D2GraspExample.cpp b/examples/RoboticsLearning/R2D2GraspExample.cpp index 54a897af5..4da5cc22a 100644 --- a/examples/RoboticsLearning/R2D2GraspExample.cpp +++ b/examples/RoboticsLearning/R2D2GraspExample.cpp @@ -99,7 +99,8 @@ public: args.m_forceOverrideFixedBase = true; args.m_fileType = B3_SDF_FILE; //args.m_startOrientation = b3Quaternion() - m_robotSim.loadFile(args); + b3RobotSimLoadFileResults results; + m_robotSim.loadFile(args,results); } { b3RobotSimLoadFileArgs args(""); diff --git a/examples/RoboticsLearning/b3RobotSimAPI.h b/examples/RoboticsLearning/b3RobotSimAPI.h index 61320553f..98c7e1fa0 100644 --- a/examples/RoboticsLearning/b3RobotSimAPI.h +++ b/examples/RoboticsLearning/b3RobotSimAPI.h @@ -81,7 +81,7 @@ public: bool connect(struct GUIHelperInterface* guiHelper); void disconnect(); - bool loadFile(const struct b3RobotSimLoadFileArgs& args, b3RobotSimLoadFileResults& results=b3RobotSimLoadFileResults()); + bool loadFile(const struct b3RobotSimLoadFileArgs& args, b3RobotSimLoadFileResults& results); int getNumJoints(int bodyUniqueId) const;