本文整理汇总了C++中OptimisedUtil::softwareVertexSkinning方法的典型用法代码示例。如果您正苦于以下问题:C++ OptimisedUtil::softwareVertexSkinning方法的具体用法?C++ OptimisedUtil::softwareVertexSkinning怎么用?C++ OptimisedUtil::softwareVertexSkinning使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类OptimisedUtil
的用法示例。
在下文中一共展示了OptimisedUtil::softwareVertexSkinning方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: softwareVertexSkinning
virtual void softwareVertexSkinning(
const float *srcPosPtr, float *destPosPtr,
const float *srcNormPtr, float *destNormPtr,
const float *blendWeightPtr, const unsigned char* blendIndexPtr,
const Matrix4* const* blendMatrices,
size_t srcPosStride, size_t destPosStride,
size_t srcNormStride, size_t destNormStride,
size_t blendWeightStride, size_t blendIndexStride,
size_t numWeightsPerVertex,
size_t numVertices)
{
static ProfileItems results;
static size_t index;
index = Root::getSingleton().getNextFrameNumber() % mOptimisedUtils.size();
OptimisedUtil* impl = mOptimisedUtils[index];
ProfileItem& profile = results[index];
profile.begin();
impl->softwareVertexSkinning(
srcPosPtr, destPosPtr,
srcNormPtr, destNormPtr,
blendWeightPtr, blendIndexPtr,
blendMatrices,
srcPosStride, destPosStride,
srcNormStride, destNormStride,
blendWeightStride, blendIndexStride,
numWeightsPerVertex,
numVertices);
profile.end();
// You can put break point here while running test application, to
// watch profile results.
++index; // So we can put break point here even if in release build
}