本文整理汇总了C++中InStream::ReadPointerVR方法的典型用法代码示例。如果您正苦于以下问题:C++ InStream::ReadPointerVR方法的具体用法?C++ InStream::ReadPointerVR怎么用?C++ InStream::ReadPointerVR使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类InStream
的用法示例。
在下文中一共展示了InStream::ReadPointerVR方法的7个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: Load
//----------------------------------------------------------------------------
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);
}
示例2: Load
//----------------------------------------------------------------------------
void CurveMesh::Load (InStream& source)
{
PX2_BEGIN_DEBUG_STREAM_LOAD(source);
Polysegment::Load(source);
PX2_VERSION_LOAD(source);
source.Read(mNumFullVertices);
source.Read(mNumSegments);
source.Read(mLevel);
source.ReadBool(mAllowDynamicChange);
source.ReadPointer(mOrigVBuffer);
source.ReadPointer(mOrigParams);
bool locked = (mOrigVBuffer == 0);
if (!locked)
{
source.ReadPointerVR(mNumSegments, mSegments);
}
if (mAllowDynamicChange)
{
mCInfo = new1<CurveInfo>(mNumFullVertices);
for (int i = 0; i < mNumFullVertices; ++i)
{
source.ReadPointer(mCInfo[i].Segment);
source.Read(mCInfo[i].Param);
}
}
PX2_END_DEBUG_STREAM_LOAD(CurveMesh, source);
}
示例3: Load
//----------------------------------------------------------------------------
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: Load
//----------------------------------------------------------------------------
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);
}
示例5: Load
//----------------------------------------------------------------------------
void SkinController::Load (InStream& source)
{
PX2_BEGIN_DEBUG_STREAM_LOAD(source);
Controller::Load(source);
source.Read(mNumVertices);
source.Read(mNumBones);
int numWeightsOffsets = mNumVertices*mNumBones;
mWeights = new2<float>(mNumBones, mNumVertices);
mOffsets = new2<APoint>(mNumBones, mNumVertices);
source.ReadVV(numWeightsOffsets, mWeights[0]);
source.ReadAggregateVV(numWeightsOffsets, mOffsets[0]);
source.ReadPointerVR(mNumBones, mBones);
PX2_END_DEBUG_STREAM_LOAD(SkinController, source);
}
示例6: Load
//----------------------------------------------------------------------------
void RenderTarget::Load (InStream& source)
{
PX2_BEGIN_DEBUG_STREAM_LOAD(source);
Object::Load(source);
PX2_VERSION_LOAD(source);
source.Read(mNumTargets);
source.Read(mWidth);
source.Read(mHeight);
source.Read(mHasMipmaps);
source.ReadBool(mHasDepthStencil);
source.ReadBool(mIsOnlyDepth16NoStencil);
source.ReadPointerVR(mNumTargets, mColorTextures);
source.ReadPointer(mDepthStencilTexture);
source.ReadBool(mHasMipmaps);
PX2_END_DEBUG_STREAM_LOAD(RenderTarget, source);
}
示例7: Load
//----------------------------------------------------------------------------
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);
}