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


C++ OutStream::WriteEnum方法代码示例

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


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

示例1: Save

//----------------------------------------------------------------------------
void UIBagFrame::Save (OutStream& target) const
{
	PX2_BEGIN_DEBUG_STREAM_SAVE(target);

	UIPushFrame::Save(target);
	PX2_VERSION_SAVE(target);

	target.WriteBool(mIsBagFrameNeedUpdate);
	target.WriteEnum(mAlignItemType);
	target.WriteAggregate(mSize);
	target.WriteAggregate(mCornorSize);
	target.WriteAggregate(mItemSize);
	target.WriteAggregate(mAlignItemNum);

	PX2_END_DEBUG_STREAM_SAVE(UIBagFrame, target);
}
开发者ID:SylviaTanenbaum,项目名称:3d-simulation-and-game,代码行数:17,代码来源:PX2UIBagFrame.cpp

示例2: Save

//----------------------------------------------------------------------------
void Controller::Save (OutStream& target) const
{
	PX2_BEGIN_DEBUG_STREAM_SAVE(target);

	Object::Save(target);

	target.WriteEnum(Repeat);
	target.Write(MinTime);
	target.Write(MaxTime);
	target.Write(Phase);
	target.Write(Frequency);
	target.WriteBool(Active);
	target.WritePointer(mObject);

	PX2_END_DEBUG_STREAM_SAVE(Controller, target);
}
开发者ID:ascetic85,项目名称:Phoenix3d,代码行数:17,代码来源:PX2Controller.cpp

示例3: Save

//----------------------------------------------------------------------------
void Movable::Save (OutStream& target) const
{
    PX2_BEGIN_DEBUG_STREAM_SAVE(target);

    Controlledable::Save(target);

    target.WriteAggregate(LocalTransform);
    target.WriteAggregate(WorldTransform);
    target.WriteBool(WorldTransformIsCurrent);
    target.WriteAggregate(WorldBound);
    target.WriteBool(WorldBoundIsCurrent);
    target.WriteEnum(Culling);

	// mParent不被保存,它会在Node::Link中调用Node::SetChild被设置。

    PX2_END_DEBUG_STREAM_SAVE(Movable, target);
}
开发者ID:ascetic85,项目名称:Phoenix3d,代码行数:18,代码来源:PX2Movable.cpp

示例4: Save

//----------------------------------------------------------------------------
void Spatial::Save (OutStream& target) const
{
    WM5_BEGIN_DEBUG_STREAM_SAVE(target);

    ControlledObject::Save(target);

    target.WriteAggregate(LocalTransform);
    target.WriteAggregate(WorldTransform);
    target.WriteBool(WorldTransformIsCurrent);
    target.WriteAggregate(WorldBound);
    target.WriteBool(WorldBoundIsCurrent);
    target.WriteEnum(Culling);

    // mParent is not saved.  On load, it will be set in Node::Link when the
    // child pointers of the Node are resolved by Node::SetChild.

    WM5_END_DEBUG_STREAM_SAVE(Spatial, target);
}
开发者ID:Kiichi77,项目名称:WildMagic,代码行数:19,代码来源:Wm5Spatial.cpp

示例5: Save

//----------------------------------------------------------------------------
void TriggerActor::Save (OutStream& target) const
{
	PX2_BEGIN_DEBUG_STREAM_SAVE(target);

	Actor::Save(target);
	PX2_VERSION_SAVE(target);

	target.WriteBool(mEnable);
	target.WriteEnum(mAreaType);
	target.Write(mBox.Min[0]);
	target.Write(mBox.Min[1]);
	target.Write(mBox.Min[2]);
	target.Write(mBox.Max[0]);
	target.Write(mBox.Max[1]);
	target.Write(mBox.Max[2]);
	target.WriteAggregate<Vector3f>(mSphere.Center);
	target.Write(mSphere.Radius);

	PX2_END_DEBUG_STREAM_SAVE(TriggerActor, target);
}
开发者ID:SylviaTanenbaum,项目名称:3d-simulation-and-game,代码行数:21,代码来源:PX2TriggerActor.cpp

示例6: Save

//----------------------------------------------------------------------------
void Jungler::Save (OutStream& target) const
{
	PX2_BEGIN_DEBUG_STREAM_SAVE(target);

	TriMesh::Save(target);
	PX2_VERSION_SAVE(target);

	target.WriteEnum(mJunglerType);
	target.Write(mMaxNum);
	target.WritePointer(mMtlInst);
	target.WritePointer(mTexture);
	int num = (int)mPoses.size();
	target.Write<int>(num);
	if (num > 0)
	{
		target.WriteAggregateN<APoint>(num, &mPoses[0]);
		target.WriteAggregateN<AVector>(num, &mNormals[0]);
		target.WriteN<float>(num, &mWidths[0]);
		target.WriteN<float>(num, &mHeights[0]);
	}

	PX2_END_DEBUG_STREAM_SAVE(Jungler, target);
}
开发者ID:PhoenixSteam,项目名称:Phoenix3D,代码行数:24,代码来源:PX2Jungler.cpp

示例7: Save

//----------------------------------------------------------------------------
void RevolutionSurface::Save (OutStream& target) const
{
    WM5_BEGIN_DEBUG_STREAM_SAVE(target);

    TriMesh::Save(target);

    target.Write(mXCenter);
    target.WriteEnum(mTopology);
    target.Write(mNumCurveSamples);
    target.Write(mNumRadialSamples);
    target.WriteN(mNumRadialSamples + 1, mSin);
    target.WriteN(mNumRadialSamples + 1, mCos);
    target.WriteBool(mSampleByArcLength);

    // TODO.  The class Curve2 is abstract and does not know about the data
    // representation for the derived-class object that is passed to the
    // RevolutionSurface constructor.  Because of this, any loaded
    // RevolutionSurface object will require the application to manually set
    // the curve via the Curve() member.
    //
    // Streaming support should be added to the curve classes.

    WM5_END_DEBUG_STREAM_SAVE(RevolutionSurface, target);
}
开发者ID:Kiichi77,项目名称:WildMagic,代码行数:25,代码来源:Wm5RevolutionSurface.cpp


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