本文整理汇总了C++中InStream::ReadBool方法的典型用法代码示例。如果您正苦于以下问题:C++ InStream::ReadBool方法的具体用法?C++ InStream::ReadBool怎么用?C++ InStream::ReadBool使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类InStream
的用法示例。
在下文中一共展示了InStream::ReadBool方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: Load
//----------------------------------------------------------------------------
void CullState::Load (InStream& source)
{
WM5_BEGIN_DEBUG_STREAM_LOAD(source);
Object::Load(source);
source.ReadBool(Enabled);
source.ReadBool(CCWOrder);
WM5_END_DEBUG_STREAM_LOAD(CullState, source);
}
示例2: Load
//----------------------------------------------------------------------------
void DepthProperty::Load (InStream& source)
{
PX2_BEGIN_DEBUG_STREAM_LOAD(source);
Object::Load(source);
source.ReadBool(Enabled);
source.ReadBool(Writable);
source.ReadEnum(Compare);
PX2_END_DEBUG_STREAM_LOAD(DepthProperty, source);
}
示例3: Load
//----------------------------------------------------------------------------
void DepthState::Load (InStream& source)
{
WM5_BEGIN_DEBUG_STREAM_LOAD(source);
Object::Load(source);
source.ReadBool(Enabled);
source.ReadBool(Writable);
source.ReadEnum(Compare);
WM5_END_DEBUG_STREAM_LOAD(DepthState, source);
}
示例4: Load
//----------------------------------------------------------------------------
void OffsetProperty::Load (InStream& source)
{
PX2_BEGIN_DEBUG_STREAM_LOAD(source);
Object::Load(source);
source.ReadBool(FillEnabled);
source.ReadBool(LineEnabled);
source.ReadBool(PointEnabled);
source.Read(Scale);
source.Read(Bias);
PX2_END_DEBUG_STREAM_LOAD(OffsetProperty, source);
}
示例5: Load
//----------------------------------------------------------------------------
void OffsetState::Load (InStream& source)
{
WM5_BEGIN_DEBUG_STREAM_LOAD(source);
Object::Load(source);
source.ReadBool(FillEnabled);
source.ReadBool(LineEnabled);
source.ReadBool(PointEnabled);
source.Read(Scale);
source.Read(Bias);
WM5_END_DEBUG_STREAM_LOAD(OffsetState, source);
}
示例6: Load
//----------------------------------------------------------------------------
void BlendTransformController::Load (InStream& source)
{
WM5_BEGIN_DEBUG_STREAM_LOAD(source);
TransformController::Load(source);
source.ReadPointer(mController0);
source.ReadPointer(mController1);
source.Read(mWeight);
source.ReadBool(mRSMatrices);
source.ReadBool(mGeometricRotation);
source.ReadBool(mGeometricScale);
WM5_END_DEBUG_STREAM_LOAD(BlendTransformController, source);
}
示例7: Load
//----------------------------------------------------------------------------
void Terrain::Load (InStream& source)
{
PX2_BEGIN_DEBUG_STREAM_LOAD(source);
Node::Load(source);
PX2_VERSION_LOAD(source);
source.Read(mNumRows);
source.Read(mNumCols);
source.Read(mSize);
source.Read(mMinElevation);
source.Read(mMaxElevation);
source.Read(mSpacing);
mPages = new2<TerrainPagePtr>(mNumCols, mNumRows);
for (int row = 0; row < mNumRows; ++row)
{
for (int col = 0; col < mNumCols; ++col)
{
source.ReadPointer(mPages[row][col]);
}
}
source.ReadBool(mIsUseSimpleMtl);
source.ReadPointer(mVFormatEdit);
source.ReadPointer(mVFormatSimple);
source.ReadPointer(mMtlEdit);
source.ReadPointer(mMtlSimple);
source.ReadPointer(mShine);
source.Read(mJunglerFrequency);
source.Read(mJunglerStrength);
PX2_END_DEBUG_STREAM_LOAD(Terrain, source);
}
示例8: 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);
}
示例9: Load
//----------------------------------------------------------------------------
void Movable::Load (InStream& source)
{
PX2_BEGIN_DEBUG_STREAM_LOAD(source);
Controlledable::Load(source);
source.ReadAggregate(LocalTransform);
source.ReadAggregate(WorldTransform);
source.ReadBool(WorldTransformIsCurrent);
source.ReadAggregate(WorldBound);
source.ReadBool(WorldBoundIsCurrent);
source.ReadEnum(Culling);
// mParent不被保存,它会在Node::Link中调用Node::SetChild被设置。
PX2_END_DEBUG_STREAM_LOAD(Movable, source);
}
示例10: Load
//----------------------------------------------------------------------------
void Spatial::Load (InStream& source)
{
WM5_BEGIN_DEBUG_STREAM_LOAD(source);
ControlledObject::Load(source);
source.ReadAggregate(LocalTransform);
source.ReadAggregate(WorldTransform);
source.ReadBool(WorldTransformIsCurrent);
source.ReadAggregate(WorldBound);
source.ReadBool(WorldBoundIsCurrent);
source.ReadEnum(Culling);
// mParent was not saved. It will be set in Node::Link when the child
// pointers of the Node are resolved by Node::SetChild.
WM5_END_DEBUG_STREAM_LOAD(Spatial, source);
}
示例11: Load
//----------------------------------------------------------------------------
void Actor::Load (InStream& source)
{
PX2_BEGIN_DEBUG_STREAM_LOAD(source);
Netable::Load(source);
// mScene不被保存,它会在Scene::Link中调用Scene::AddChild被设置。
source.ReadAggregate(mScale);
source.ReadAggregate(mRotation);
source.ReadAggregate(mPosition);
source.ReadBool(mVisible);
source.Read(mTransAlpha);
source.ReadPointer(mMovable);
source.ReadPointer(mHelpMovable);
source.ReadBool(mShowHelpMovable);
PX2_END_DEBUG_STREAM_LOAD(Actor, source);
}
示例12: Load
//----------------------------------------------------------------------------
void WireState::Load (InStream& source)
{
WM5_BEGIN_DEBUG_STREAM_LOAD(source);
Object::Load(source);
source.ReadBool(Enabled);
WM5_END_DEBUG_STREAM_LOAD(WireState, source);
}
示例13: Load
//----------------------------------------------------------------------------
void Shader::Load (InStream& source)
{
WM5_BEGIN_DEBUG_STREAM_LOAD(source);
Object::Load(source);
source.ReadStringRR(mNumInputs, mInputName);
source.ReadEnumVR(mNumInputs, mInputType);
source.ReadEnumVR(mNumInputs, mInputSemantic);
source.ReadStringRR(mNumOutputs, mOutputName);
source.ReadEnumVR(mNumOutputs, mOutputType);
source.ReadEnumVR(mNumOutputs, mOutputSemantic);
source.ReadStringRR(mNumConstants, mConstantName);
source.ReadVR(mNumConstants, mNumRegistersUsed);
source.ReadStringRR(mNumSamplers, mSamplerName);
source.ReadEnumVR(mNumSamplers, mSamplerType);
source.ReadEnumVR(mNumSamplers, mFilter);
source.ReadEnumVR(mNumSamplers, mCoordinate[0]);
source.ReadEnumVR(mNumSamplers, mCoordinate[1]);
source.ReadEnumVR(mNumSamplers, mCoordinate[2]);
source.ReadVR(mNumSamplers, mLodBias);
source.ReadVR(mNumSamplers, mAnisotropy);
source.ReadAggregateVR(mNumSamplers, mBorderColor);
// Test for modified MAX_PROFILES.
int maxProfiles;
source.Read(maxProfiles);
#ifdef WM5_ASSERT_ON_CHANGED_MAX_PROFILES
assertion(maxProfiles == MAX_PROFILES,
"You changed MAX_PROFILES and are loading an old data set.\n");
#endif
source.ReadBool(mProfileOwner);
if (mProfileOwner)
{
int i;
for (i = 0; i < maxProfiles; ++i)
{
source.ReadVR(mNumConstants, mBaseRegister[i]);
source.ReadVR(mNumSamplers, mTextureUnit[i]);
mProgram[i] = new0 std::string();
source.ReadString(*mProgram[i]);
}
for (i = maxProfiles; i < MAX_PROFILES; ++i)
{
mBaseRegister[i] = 0;
mTextureUnit[i] = 0;
mProgram[i] = 0;
}
}
WM5_END_DEBUG_STREAM_LOAD(Shader, source);
}
示例14: Load
//----------------------------------------------------------------------------
void LODTerrain::Load (InStream& source)
{
PX2_BEGIN_DEBUG_STREAM_LOAD(source);
Terrain::Load(source);
source.Read(mPixelTolerance);
source.ReadBool(mIsCloseAssumption);
PX2_END_DEBUG_STREAM_LOAD(LODTerrain, source);
}
示例15: Load
//----------------------------------------------------------------------------
void InterpCurveTranslateController::Load (InStream& source)
{
PX2_BEGIN_DEBUG_STREAM_LOAD(source);
InterpCurveFloat3Controller::Load(source);
PX2_VERSION_LOAD(source);
source.ReadBool(mIsWorld);
PX2_END_DEBUG_STREAM_LOAD(InterpCurveTranslateController, source);
}