本文整理汇总了C++中smartbody::SBScene::getDebuggerServer方法的典型用法代码示例。如果您正苦于以下问题:C++ SBScene::getDebuggerServer方法的具体用法?C++ SBScene::getDebuggerServer怎么用?C++ SBScene::getDebuggerServer使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类smartbody::SBScene
的用法示例。
在下文中一共展示了SBScene::getDebuggerServer方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: SBM_SBDebuggerServer_SetRendererIsRightHanded
SBAPI void SBM_SBDebuggerServer_SetRendererIsRightHanded( SBMHANDLE sbmHandle, bool enabled )
{
if ( !SBM_HandleExists( sbmHandle ) )
{
return;
}
SmartBody::SBScene * scene = SmartBody::SBScene::getScene();
SmartBody::SBDebuggerServer * debuggerServer = scene->getDebuggerServer();
debuggerServer->m_rendererIsRightHanded = enabled;
}
示例2: SBM_SBDebuggerServer_SetID
SBAPI void SBM_SBDebuggerServer_SetID( SBMHANDLE sbmHandle, const char * id )
{
if ( !SBM_HandleExists( sbmHandle ) )
{
return;
}
SmartBody::SBScene * scene = SmartBody::SBScene::getScene();
SmartBody::SBDebuggerServer * debuggerServer = scene->getDebuggerServer();
debuggerServer->setStringAttribute("id", id);
}
示例3: SBM_ProcessVHMsgs
SBAPI bool SBM_ProcessVHMsgs( SBMHANDLE sbmHandle, const char * op, const char * args )
{
if ( !SBM_HandleExists( sbmHandle ) )
{
return false;
}
SmartBody::SBScene * scene = SmartBody::SBScene::getScene();
string s = string(op) + string(" ") + string(args);
scene->command( s.c_str() );
scene->getDebuggerServer()->ProcessVHMsgs(op, args);
return true;
}
示例4: SBM_SBDebuggerServer_SetCameraValues
SBAPI void SBM_SBDebuggerServer_SetCameraValues( SBMHANDLE sbmHandle, double x, double y, double z, double rx, double ry, double rz, double rw, double fov, double aspect, double zNear, double zFar )
{
if ( !SBM_HandleExists( sbmHandle ) )
{
return;
}
SmartBody::SBScene * scene = SmartBody::SBScene::getScene();
SmartBody::SBDebuggerServer * debuggerServer = scene->getDebuggerServer();
debuggerServer->m_cameraPos.x = x;
debuggerServer->m_cameraPos.y = y;
debuggerServer->m_cameraPos.z = z;
debuggerServer->m_cameraRot.x = rx;
debuggerServer->m_cameraRot.y = ry;
debuggerServer->m_cameraRot.z = rz;
debuggerServer->m_cameraRot.w = rw;
debuggerServer->m_cameraFovY = fov;
debuggerServer->m_cameraAspect = aspect;
debuggerServer->m_cameraZNear = zNear;
debuggerServer->m_cameraZFar = zFar;
}