fix camera update issue in previous commit
fix Mac OSX build issue
This commit is contained in:
@@ -956,6 +956,8 @@ void GLInstancingRenderer::updateCamera(int upAxis)
|
|||||||
m_data->m_activeCamera->setCameraUpAxis(upAxis);
|
m_data->m_activeCamera->setCameraUpAxis(upAxis);
|
||||||
m_data->m_activeCamera->setAspectRatio((float)m_screenWidth/(float)m_screenHeight);
|
m_data->m_activeCamera->setAspectRatio((float)m_screenWidth/(float)m_screenHeight);
|
||||||
m_data->m_defaultCamera1.update();
|
m_data->m_defaultCamera1.update();
|
||||||
|
m_data->m_activeCamera->getCameraProjectionMatrix(m_data->m_projectionMatrix);
|
||||||
|
m_data->m_activeCamera->getCameraViewMatrix(m_data->m_viewMatrix);
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -99,7 +99,8 @@ public:
|
|||||||
args.m_forceOverrideFixedBase = true;
|
args.m_forceOverrideFixedBase = true;
|
||||||
args.m_fileType = B3_SDF_FILE;
|
args.m_fileType = B3_SDF_FILE;
|
||||||
//args.m_startOrientation = b3Quaternion()
|
//args.m_startOrientation = b3Quaternion()
|
||||||
m_robotSim.loadFile(args);
|
b3RobotSimLoadFileResults results;
|
||||||
|
m_robotSim.loadFile(args,results);
|
||||||
}
|
}
|
||||||
{
|
{
|
||||||
b3RobotSimLoadFileArgs args("");
|
b3RobotSimLoadFileArgs args("");
|
||||||
|
|||||||
@@ -81,7 +81,7 @@ public:
|
|||||||
bool connect(struct GUIHelperInterface* guiHelper);
|
bool connect(struct GUIHelperInterface* guiHelper);
|
||||||
void disconnect();
|
void disconnect();
|
||||||
|
|
||||||
bool loadFile(const struct b3RobotSimLoadFileArgs& args, b3RobotSimLoadFileResults& results=b3RobotSimLoadFileResults());
|
bool loadFile(const struct b3RobotSimLoadFileArgs& args, b3RobotSimLoadFileResults& results);
|
||||||
|
|
||||||
int getNumJoints(int bodyUniqueId) const;
|
int getNumJoints(int bodyUniqueId) const;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user