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


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

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

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

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

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

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

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

示例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);
}
开发者ID:SylviaTanenbaum,项目名称:3d-simulation-and-game,代码行数:35,代码来源:PX2Terrain.cpp

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

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

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

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

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

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

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

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


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