예제 #1
0
//----------------------------------------------------------------------------
void ShaderParameters::Load (InStream& source)
{
	PX2_BEGIN_DEBUG_STREAM_LOAD(source);

	Object::Load(source);

	source.ReadPointer(mShader);
	source.ReadPointerRR(mNumConstants, mConstants);
	source.ReadPointerRR(mNumTextures, mTextures);

	PX2_END_DEBUG_STREAM_LOAD(ShaderParameters, source);
}
예제 #2
0
//----------------------------------------------------------------------------
void ConvexRegion::Load (InStream& source)
{
    WM5_BEGIN_DEBUG_STREAM_LOAD(source);

    Node::Load(source);

    source.ReadPointerRR(mNumPortals, mPortals);

    WM5_END_DEBUG_STREAM_LOAD(ConvexRegion, source);
}
예제 #3
0
//----------------------------------------------------------------------------
void RenderTarget::Load (InStream& source)
{
    WM5_BEGIN_DEBUG_STREAM_LOAD(source);

    Object::Load(source);

    source.ReadPointerRR(mNumTargets, mColorTextures);
    source.ReadPointer(mDepthStencilTexture);
    source.ReadBool(mHasMipmaps);

    WM5_END_DEBUG_STREAM_LOAD(RenderTarget, source);
}
예제 #4
0
//----------------------------------------------------------------------------
void ControlledObject::Load (InStream& source)
{
	WM5_BEGIN_DEBUG_STREAM_LOAD(source);

	Object::Load(source);

	source.ReadPointerRR(mNumControllers, mControllers);

	mCapacity = mNumControllers;

	WM5_END_DEBUG_STREAM_LOAD(ControlledObject, source);
}
예제 #5
0
//----------------------------------------------------------------------------
void VisualEffectInstance::Load (InStream& source)
{
    WM5_BEGIN_DEBUG_STREAM_LOAD(source);

    Object::Load(source);

    source.Read(mTechniqueIndex);
    source.ReadPointer(mEffect);
    source.ReadPointerRR(mNumPasses, mVertexParameters);
    source.ReadPointerVR(mNumPasses, mPixelParameters);

    WM5_END_DEBUG_STREAM_LOAD(VisualEffectInstance, source);
}
예제 #6
0
//----------------------------------------------------------------------------
void MaterialInstance::Load (InStream& source)
{
	PX2_BEGIN_DEBUG_STREAM_LOAD(source);

	Object::Load(source);
	PX2_VERSION_LOAD(source);

	source.ReadBool(mIsShareMtl);

	source.ReadString(mMaterialFilename);
	source.ReadString(mInstanceTechName);

	source.ReadPointer(mMaterial);
	source.Read(mTechniqueIndex);

	source.ReadPointerRR(mNumPasses, mVertexParameters);
	source.ReadPointerVR(mNumPasses, mPixelParameters);

	PX2_END_DEBUG_STREAM_LOAD(MaterialInstance, source);
}