本文整理汇总了C++中InStream::ReadAggregateVR方法的典型用法代码示例。如果您正苦于以下问题:C++ InStream::ReadAggregateVR方法的具体用法?C++ InStream::ReadAggregateVR怎么用?C++ InStream::ReadAggregateVR使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类InStream
的用法示例。
在下文中一共展示了InStream::ReadAggregateVR方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: Load
//----------------------------------------------------------------------------
void KeyframeController::Load (InStream& source)
{
WM5_BEGIN_DEBUG_STREAM_LOAD(source);
TransformController::Load(source);
source.Read(mNumCommonTimes);
if (mNumCommonTimes > 0)
{
source.ReadVR(mNumCommonTimes, mCommonTimes);
source.ReadAggregateRR(mNumTranslations, mTranslations);
source.ReadAggregateRR(mNumRotations, mRotations);
source.ReadRR(mNumScales, mScales);
}
else
{
source.ReadRR(mNumTranslations, mTranslationTimes);
source.ReadAggregateVR(mNumTranslations, mTranslations);
source.ReadRR(mNumRotations, mRotationTimes);
source.ReadAggregateVR(mNumRotations, mRotations);
source.ReadRR(mNumScales, mScaleTimes);
source.ReadVR(mNumScales, mScales);
}
WM5_END_DEBUG_STREAM_LOAD(KeyframeController, source);
}
示例2: Load
//----------------------------------------------------------------------------
void Shader::Load (InStream& source)
{
WM5_BEGIN_DEBUG_STREAM_LOAD(source);
Object::Load(source);
source.ReadStringRR(mNumInputs, mInputName);
source.ReadEnumVR(mNumInputs, mInputType);
source.ReadEnumVR(mNumInputs, mInputSemantic);
source.ReadStringRR(mNumOutputs, mOutputName);
source.ReadEnumVR(mNumOutputs, mOutputType);
source.ReadEnumVR(mNumOutputs, mOutputSemantic);
source.ReadStringRR(mNumConstants, mConstantName);
source.ReadVR(mNumConstants, mNumRegistersUsed);
source.ReadStringRR(mNumSamplers, mSamplerName);
source.ReadEnumVR(mNumSamplers, mSamplerType);
source.ReadEnumVR(mNumSamplers, mFilter);
source.ReadEnumVR(mNumSamplers, mCoordinate[0]);
source.ReadEnumVR(mNumSamplers, mCoordinate[1]);
source.ReadEnumVR(mNumSamplers, mCoordinate[2]);
source.ReadVR(mNumSamplers, mLodBias);
source.ReadVR(mNumSamplers, mAnisotropy);
source.ReadAggregateVR(mNumSamplers, mBorderColor);
// Test for modified MAX_PROFILES.
int maxProfiles;
source.Read(maxProfiles);
#ifdef WM5_ASSERT_ON_CHANGED_MAX_PROFILES
assertion(maxProfiles == MAX_PROFILES,
"You changed MAX_PROFILES and are loading an old data set.\n");
#endif
source.ReadBool(mProfileOwner);
if (mProfileOwner)
{
int i;
for (i = 0; i < maxProfiles; ++i)
{
source.ReadVR(mNumConstants, mBaseRegister[i]);
source.ReadVR(mNumSamplers, mTextureUnit[i]);
mProgram[i] = new0 std::string();
source.ReadString(*mProgram[i]);
}
for (i = maxProfiles; i < MAX_PROFILES; ++i)
{
mBaseRegister[i] = 0;
mTextureUnit[i] = 0;
mProgram[i] = 0;
}
}
WM5_END_DEBUG_STREAM_LOAD(Shader, source);
}