本文整理汇总了C++中ObjectGroup::addObjectReference方法的典型用法代码示例。如果您正苦于以下问题:C++ ObjectGroup::addObjectReference方法的具体用法?C++ ObjectGroup::addObjectReference怎么用?C++ ObjectGroup::addObjectReference使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类ObjectGroup
的用法示例。
在下文中一共展示了ObjectGroup::addObjectReference方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: addObject
/// Add a reference to render an object.
///
/// \param object Object to queue for rendering.
/// \param transform Object transformation.
/// \param pass Render pass id.
/// \param optimistic Can we render in an optimistic manner? (default: true)
void addObject(const Object &object, const mat4 &transform, unsigned pass = 0, bool optimistic = true,
const AnimationState *state = NULL)
{
ObjectGroup *grp = object.getGroup();
ObjectReference &vv = getPass(pass).emplace_back(object, m_screen_transform, m_light_transform,
transform, state);
if(grp)
{
if(optimistic)
{
grp->addObjectReference(m_frame_count, vv);
}
else
{
vv.setOptimistic(false);
}
}
else
{
vv.setOptimistic(true);
}
}
开发者ID:faemiyah,项目名称:faemiyah-demoscene_2016-08_80k-intro_my_mistress_the_leviathan,代码行数:30,代码来源:verbatim_state.hpp