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

    Object::Load(source);

    source.ReadRR(mNumElements, mElements);

    WM5_END_DEBUG_STREAM_LOAD(FloatArray, source);
}
//----------------------------------------------------------------------------
void PlanarReflectionEffect::Load (InStream& source)
{
    WM5_BEGIN_DEBUG_STREAM_LOAD(source);

    GlobalEffect::Load(source);

    source.ReadRR(mNumPlanes, mReflectances);
    source.ReadPointerVR(mNumPlanes, mPlanes);

    WM5_END_DEBUG_STREAM_LOAD(PlanarReflectionEffect, source);
}
Пример #4
0
//----------------------------------------------------------------------------
void ShaderFloat::Load (InStream& source)
{
    WM5_BEGIN_DEBUG_STREAM_LOAD(source);

    Object::Load(source);

    source.ReadRR(mNumElements, mData);
    source.ReadBool(mAllowUpdater);

    WM5_END_DEBUG_STREAM_LOAD(ShaderFloat, source);
}
Пример #5
0
//----------------------------------------------------------------------------
void Particles::Load (InStream& source)
{
    WM5_BEGIN_DEBUG_STREAM_LOAD(source);

    TriMesh::Load(source);

    source.ReadRR(mNumParticles, mPositionSizes);
    source.Read(mSizeAdjust);
    source.Read(mNumActive);

    WM5_END_DEBUG_STREAM_LOAD(Particles, source);
}
Пример #6
0
//----------------------------------------------------------------------------
void Buffer::Load (InStream& source)
{
	WM5_BEGIN_DEBUG_STREAM_LOAD(source);

	Object::Load(source);

	source.Read(mNumElements);
	source.Read(mElementSize);
	source.ReadEnum(mUsage);
	source.ReadRR(mNumBytes, mData);

	WM5_END_DEBUG_STREAM_LOAD(Buffer, source);
}
Пример #7
0
//----------------------------------------------------------------------------
void DlodNode::Load (InStream& source)
{
    PX2_BEGIN_DEBUG_STREAM_LOAD(source);

    SwitchNode::Load(source);

    source.ReadAggregate(mModelLodCenter);
    source.ReadRR(mNumLevelsOfDetail, mModelMinDist);
    source.ReadVR(mNumLevelsOfDetail, mModelMaxDist);
    source.ReadVR(mNumLevelsOfDetail, mWorldMinDist);
    source.ReadVR(mNumLevelsOfDetail, mWorldMaxDist);

    PX2_END_DEBUG_STREAM_LOAD(DlodNode, source);
}
Пример #8
0
//----------------------------------------------------------------------------
void Portal::Load (InStream& source)
{
    WM5_BEGIN_DEBUG_STREAM_LOAD(source);

    Object::Load(source);

    source.ReadRR(mNumVertices, mModelVertices);
    source.ReadAggregate(mModelPlane);
    source.ReadBool(Open);
    source.ReadPointer(AdjacentRegion);

    mWorldVertices = new1<APoint>(mNumVertices);

    WM5_END_DEBUG_STREAM_LOAD(Portal, source);
}