本文整理汇总了C++中Transforms::push_back方法的典型用法代码示例。如果您正苦于以下问题:C++ Transforms::push_back方法的具体用法?C++ Transforms::push_back怎么用?C++ Transforms::push_back使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Transforms
的用法示例。
在下文中一共展示了Transforms::push_back方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: DrawOpQueue
DrawOpQueue()
{
// Every queue has a base transform that is always the current transform.
// This keeps the code a bit more uniform, and allows the window to
// set a base transform in the main rendering queue.
individualTransforms.push_back(scale(1));
absoluteTransforms.push_back(scale(1));
}
示例2: makeCurrentTransform
void makeCurrentTransform(const Transform& transform)
{
Transforms::iterator oldPosition =
std::find(absoluteTransforms.begin(), absoluteTransforms.end(), transform);
if (oldPosition == absoluteTransforms.end())
absoluteTransforms.push_back(transform);
else
absoluteTransforms.splice(absoluteTransforms.end(), absoluteTransforms, oldPosition);
}
示例3: pushTransform
void pushTransform(const Transform& transform)
{
individualTransforms.push_back(transform);
Transform result = multiply(transform, currentTransform());
makeCurrentTransform(result);
}