当前位置: 首页>>代码示例>>C++>>正文


C++ InStream::ReadPointerVR方法代码示例

本文整理汇总了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);
}
开发者ID:bazhenovc,项目名称:WildMagic,代码行数:14,代码来源:Wm5PlanarShadowEffect.cpp

示例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);
}
开发者ID:JamShan,项目名称:Phoenix3D_2.1,代码行数:33,代码来源:PX2CurveMesh.cpp

示例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);
}
开发者ID:Kiichi77,项目名称:WildMagic,代码行数:12,代码来源:Wm5PlanarReflectionEffect.cpp

示例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);
}
开发者ID:fishxz,项目名称:omni-bot,代码行数:14,代码来源:Wm5VisualEffectInstance.cpp

示例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);
}
开发者ID:ascetic85,项目名称:Phoenix3d,代码行数:20,代码来源:PX2SkinController.cpp

示例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);
}
开发者ID:JamShan,项目名称:Phoenix3D_2.1,代码行数:21,代码来源:PX2RenderTarget.cpp

示例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);
}
开发者ID:JamShan,项目名称:Phoenix3D_2.1,代码行数:21,代码来源:PX2MaterialInstance.cpp


注:本文中的InStream::ReadPointerVR方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。