本文整理汇总了C++中InStream::ReadAggregateVV方法的典型用法代码示例。如果您正苦于以下问题:C++ InStream::ReadAggregateVV方法的具体用法?C++ InStream::ReadAggregateVV怎么用?C++ InStream::ReadAggregateVV使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类InStream
的用法示例。
在下文中一共展示了InStream::ReadAggregateVV方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: Load
//----------------------------------------------------------------------------
void Jungler::Load (InStream& source)
{
PX2_BEGIN_DEBUG_STREAM_LOAD(source);
TriMesh::Load(source);
PX2_VERSION_LOAD(source);
source.ReadEnum(mJunglerType);
source.Read(mMaxNum);
source.ReadPointer(mMtlInst);
source.ReadPointer(mTexture);
int num = 0;
source.Read(num);
if (num > 0)
{
mPoses.resize(num);
mNormals.resize(num);
mWidths.resize(num);
mHeights.resize(num);
source.ReadAggregateVV(num, &mPoses[0]);
source.ReadAggregateVV(num, &mNormals[0]);
source.ReadVV(num, &mWidths[0]);
source.ReadVV(num, &mHeights[0]);
}
PX2_END_DEBUG_STREAM_LOAD(Jungler, source);
}
示例2: Load
//----------------------------------------------------------------------------
void SkinController::Load (InStream& source)
{
PX2_BEGIN_DEBUG_STREAM_LOAD(source);
Controller::Load(source);
PX2_VERSION_LOAD(source);
source.Read(mNumVertices);
source.Read(mNumBones);
int numWeightsOffsets = mNumVertices*mNumBones;
mWeights = new2<float>(mNumBones, mNumVertices);
mOffsets = new2<APoint>(mNumBones, mNumVertices);
mTMMatrixs = new1<HMatrix>(mNumBones);
source.ReadVV(numWeightsOffsets, mWeights[0]);
source.ReadAggregateVV(numWeightsOffsets, mOffsets[0]);
source.ReadPointerVR(mNumBones, mBones);
source.ReadAggregateVV(mNumBones, mTMMatrixs);
PX2_END_DEBUG_STREAM_LOAD(SkinController, source);
}
示例3: Load
//----------------------------------------------------------------------------
void MorphController::Load (InStream& source)
{
WM5_BEGIN_DEBUG_STREAM_LOAD(source);
Controller::Load(source);
source.Read(mNumVertices);
source.Read(mNumTargets);
source.Read(mNumKeys);
int numTotalVertices = mNumVertices*mNumTargets;
mVertices = new2<APoint>(mNumVertices, mNumTargets);
source.ReadAggregateVV(numTotalVertices, mVertices[0]);
source.ReadVR(mNumKeys, mTimes);
int numTotalWeights = mNumKeys*(mNumTargets - 1);
mWeights = new2<float>(mNumTargets - 1, mNumKeys);
source.ReadVV(numTotalWeights, mWeights[0]);
WM5_END_DEBUG_STREAM_LOAD(MorphController, source);
}