Пример #1
0
//----------------------------------------------------------------------------
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
0
//----------------------------------------------------------------------------
void Float2Array::Load (InStream& source)
{
    WM5_BEGIN_DEBUG_STREAM_LOAD(source);

    Object::Load(source);

    source.ReadAggregateRR(mNumElements, mElements);

    WM5_END_DEBUG_STREAM_LOAD(Float2Array, source);
}
Пример #3
0
//----------------------------------------------------------------------------
void PlanarShadowEffect::Load (InStream& source)
{
	WM5_BEGIN_DEBUG_STREAM_LOAD(source);

	GlobalEffect::Load(source);

	source.ReadAggregateRR(mNumPlanes, mShadowColors);
	source.ReadPointerVR(mNumPlanes, mPlanes);
	source.ReadPointerVR(mNumPlanes, mProjectors);
	source.ReadPointer(mShadowCaster);

	WM5_END_DEBUG_STREAM_LOAD(PlanarShadowEffect, source);
}