本文整理汇总了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);
}
示例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);
}
示例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);
}
示例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);
}
示例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);
}