//---------------------------------------------------------------------------- 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); }
//---------------------------------------------------------------------------- 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); }
//---------------------------------------------------------------------------- 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); }
//---------------------------------------------------------------------------- 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); }
//---------------------------------------------------------------------------- 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); }
//---------------------------------------------------------------------------- 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); }