本文整理汇总了C++中Transforms::size方法的典型用法代码示例。如果您正苦于以下问题:C++ Transforms::size方法的具体用法?C++ Transforms::size怎么用?C++ Transforms::size使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Transforms
的用法示例。
在下文中一共展示了Transforms::size方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: setBaseTransform
void setBaseTransform(const Transform& baseTransform)
{
assert (individualTransforms.size() == 1);
assert (absoluteTransforms.size() == 1);
individualTransforms.front() = absoluteTransforms.front() = baseTransform;
}
示例2: pop
void pop()
{
assert (individual.size() > 1);
individual.pop_back();
Transform result = scale(1);
for (Transforms::reverse_iterator it = individual.rbegin(),
end = individual.rend(); it != end; ++it)
result = multiply(result, *it);
makeCurrent(result);
}
示例3: popTransform
void popTransform()
{
assert (individualTransforms.size() > 1);
individualTransforms.pop_back();
// TODO: If currentTransform() wouldn't have to be .back(), then I think
// this could be optimized away and just be pop_back too. Or not?
Transform result = scale(1);
for (Transforms::reverse_iterator it = individualTransforms.rbegin(),
end = individualTransforms.rend(); it != end; ++it)
result = multiply(result, *it);
makeCurrentTransform(result);
}