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


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

本文整理汇总了C++中InStream::ReadPointerVV方法的典型用法代码示例。如果您正苦于以下问题:C++ InStream::ReadPointerVV方法的具体用法?C++ InStream::ReadPointerVV怎么用?C++ InStream::ReadPointerVV使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在InStream的用法示例。


在下文中一共展示了InStream::ReadPointerVV方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。

示例1: Load

//----------------------------------------------------------------------------
void TerrainPage::Load (InStream& source)
{
	PX2_BEGIN_DEBUG_STREAM_LOAD(source);

	TriMesh::Load(source);
	PX2_VERSION_LOAD(source);

	source.Read(mSize);
	int numVertices = mSize*mSize;
	source.ReadVR(numVertices, mHeights);
	source.ReadAggregate(mOrigin);
	source.Read(mSpacing);

	mSizeM1 = mSize - 1;
	mInvSpacing = 1.0f/mSpacing;

	int numJunglers = 0;
	source.Read(numJunglers);
	if (numJunglers > 0)
	{
		mJunglers.resize(numJunglers);
		source.ReadPointerVV(numJunglers, &mJunglers[0]);
	}

	PX2_END_DEBUG_STREAM_LOAD(TerrainPage, source);
}
开发者ID:SylviaTanenbaum,项目名称:3d-simulation-and-game,代码行数:27,代码来源:PX2TerrainPage.cpp

示例2: Load

//----------------------------------------------------------------------------
void Scene::Load (InStream& source)
{
	PX2_BEGIN_DEBUG_STREAM_LOAD(source);

	Netable::Load(source);

	source.Read<int>(mSceneID);

	source.ReadPointer(mSceneNode);

	int numActors;
	source.Read(numActors);
	if (numActors > 0)
	{
		mActors.resize(numActors);
		source.ReadPointerVV(numActors, &mActors[0]);
	}
	source.ReadPointer(mTerrainActor);

	source.ReadPointer(mDefaultLight);
	source.ReadPointer(mDefaultCameraActor);
	source.ReadPointer(mDefaultARActor);

	PX2_END_DEBUG_STREAM_LOAD(Scene, source);
}
开发者ID:ascetic85,项目名称:Phoenix3d,代码行数:26,代码来源:PX2Scene.cpp

示例3: Load

//----------------------------------------------------------------------------
void VisualTechnique::Load (InStream& source)
{
    WM5_BEGIN_DEBUG_STREAM_LOAD(source);

    Object::Load(source);

    int numPasses;
    source.Read(numPasses);
    mPasses.resize(numPasses);
    source.ReadPointerVV(numPasses, &mPasses[0]);

    WM5_END_DEBUG_STREAM_LOAD(VisualTechnique, source);
}
开发者ID:rasslingcats,项目名称:calico,代码行数:14,代码来源:Wm5VisualTechnique.cpp

示例4: Load

//----------------------------------------------------------------------------
void Material::Load (InStream& source)
{
	PX2_BEGIN_DEBUG_STREAM_LOAD(source);

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

	int numTechniques;
	source.Read(numTechniques);
	mTechniques.resize(numTechniques);
	source.ReadPointerVV(numTechniques, &mTechniques[0]);

	PX2_END_DEBUG_STREAM_LOAD(Material, source);
}
开发者ID:JamShan,项目名称:Phoenix3D_2.1,代码行数:15,代码来源:PX2Material.cpp

示例5: Load

//----------------------------------------------------------------------------
void Node::Load (InStream& source)
{
    PX2_BEGIN_DEBUG_STREAM_LOAD(source);

    Movable::Load(source);

    int numChildren;
    source.Read(numChildren);
    if (numChildren > 0)
    {
        mChild.resize(numChildren);
        source.ReadPointerVV(numChildren, &mChild[0]);
    }

    PX2_END_DEBUG_STREAM_LOAD(Node, source);
}
开发者ID:manyxu,项目名称:Phoenix3D_2.0,代码行数:17,代码来源:PX2Node.cpp


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