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


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

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


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

示例1: Save

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

	Polysegment::Save(target);
	PX2_VERSION_SAVE(target);

	target.Write(mNumFullVertices);
	target.Write(mNumSegments);
	target.Write(mLevel);
	target.WriteBool(mAllowDynamicChange);
	target.WritePointer(mOrigVBuffer);
	target.WritePointer(mOrigParams);
	target.WritePointerN(mNumSegments, mSegments);

	if (mCInfo)
	{
		for (int i = 0; i < mNumFullVertices; ++i)
		{
			target.WritePointer(mCInfo[i].Segment);
			target.Write(mCInfo[i].Param);
		}
	}

	PX2_END_DEBUG_STREAM_SAVE(CurveMesh, target);
}
开发者ID:JamShan,项目名称:Phoenix3D_2.1,代码行数:27,代码来源:PX2CurveMesh.cpp

示例2: Save

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

	TriMesh::Save(target);

	target.Write(mSize);
	int numVertices = mSize*mSize;
	target.WriteN(numVertices, mHeights);
	target.WriteAggregate(mOrigin);
	target.Write(mSpacing);

	target.WritePointer(mMaterialInstance);
	target.WritePointer(mTextureDefault);
	target.WritePointer(mTexture0);
	target.WritePointer(mTextureAlpha);
	target.WritePointer(mTexture1);
	target.WritePointer(mTexture2);
	target.WritePointer(mTexture3);
	target.WritePointer(mTexture4);
	target.WriteAggregate(mUV01);
	target.WriteAggregate(mUV23);
	target.WriteAggregate(mUV4);
	target.WritePointer(mUV01Float);
	target.WritePointer(mUV23Float);
	target.WritePointer(mUV4Float);

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

示例3: Save

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

	Node::Save(target);

	target.WriteEnum(mMode);
	target.Write(mNumRows);
	target.Write(mNumCols);
	target.Write(mSize);
	target.Write(mMinElevation);
	target.Write(mMaxElevation);
	target.Write(mSpacing);
	target.Write(mCameraRow);
	target.Write(mCameraCol);
	target.WritePointer(mVFormat);
	target.WritePointer(mCamera);
	target.WritePointer(mShine);

	for (int row = 0; row < mNumRows; ++row)
	{
		for (int col = 0; col < mNumCols; ++col)
		{
			target.WritePointer(mPages[row][col]);
		}
	}

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

示例4: Save

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

	// 写入Rtti 名称
	target.WriteString(GetRttiType().GetName());

	// 写入Rtti version
	target.Write(TYPE.GetVersion());

	// 写入ID
	target.WriteUniqueID(this);

	//是否有效
	target.WriteBool(mIsEnable);

	// 资源路径
	target.WriteString(mResourcePath);

	// 写入对象名称
	target.WriteString(mName);
	target.Write(mID);

	PX2_END_DEBUG_STREAM_SAVE(Object, target);
}
开发者ID:JamShan,项目名称:Phoenix3D_2.1,代码行数:26,代码来源:PX2Object_Stream.cpp

示例5: Save

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

    Node::Save(target);

    target.Write(ModelPlane);
    target.Write(mWorldPlane);

    WM5_END_DEBUG_STREAM_SAVE(BspNode, target);
}
开发者ID:fishxz,项目名称:omni-bot,代码行数:12,代码来源:Wm5BspNode.cpp

示例6: Save

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

	Controller::Save(target);
	PX2_VERSION_SAVE(target);

	target.Write(mWidthOverHeightPercent);
	target.Write(mOriginHeight);

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

示例7: Save

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

	Buf::Save(target);
	PX2_VERSION_SAVE(target);

	target.Write(mToGroupCharacterID);
	target.Write(mBeforeGroup);

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

示例8: Save

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

	CurveSegment::Save(target);

	target.Write(mAmplitude);
	target.Write(mFrequency);
	target.Write(mHeight);

	WM5_END_DEBUG_STREAM_SAVE(CurveSegment, target);
}
开发者ID:bhlzlx,项目名称:WildMagic,代码行数:13,代码来源:SimpleSegment.cpp

示例9: Save

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

    TriMesh::Save(target);

    target.WriteW(mNumParticles, mPositionSizes);
    target.Write(mSizeAdjust);
    target.Write(mNumActive);

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

示例10: Save

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

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

	target.Write(mCurrentRecord);
	target.Write(mTargetRecord);
	target.WritePointer(mRecordArray);

	PX2_END_DEBUG_STREAM_SAVE(ClodMesh, target);
}
开发者ID:JamShan,项目名称:Phoenix3D_2.1,代码行数:14,代码来源:PX2ClodMesh.cpp

示例11: Save

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

    Object::Save(target);

    target.Write(mUMin);
    target.Write(mUMax);
    target.Write(mVMin);
    target.Write(mVMax);
    target.WriteBool(mRectangular);

    WM5_END_DEBUG_STREAM_SAVE(SurfacePatch, target);
}
开发者ID:fishxz,项目名称:omni-bot,代码行数:15,代码来源:Wm5SurfacePatch.cpp

示例12: Save

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

	Object::Save(target);

	target.WriteBool(FillEnabled);
	target.WriteBool(LineEnabled);
	target.WriteBool(PointEnabled);
	target.Write(Scale);
	target.Write(Bias);

	WM5_END_DEBUG_STREAM_SAVE(OffsetState, target);
}
开发者ID:bhlzlx,项目名称:WildMagic,代码行数:15,代码来源:Wm5OffsetState.cpp

示例13: Save

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

    Object::Save(target);

    target.WriteBool(FillEnabled);
    target.WriteBool(LineEnabled);
    target.WriteBool(PointEnabled);
    target.Write(Scale);
    target.Write(Bias);

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

示例14: Save

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

	Controller::Save(target);
	PX2_VERSION_SAVE(target);

	target.WriteEnum(mTransType);
	target.Write(mMaxVelocity);
	target.Write(mFriction);
	target.WriteAggregate(mVelocity);

	PX2_END_DEBUG_STREAM_SAVE(PushTransformController, target);
}
开发者ID:JamShan,项目名称:Phoenix3D_2.1,代码行数:15,代码来源:PX2PushTransformController.cpp

示例15: Save

//----------------------------------------------------------------------------
void Controller::Save (OutStream& target) const
{
    WM5_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);

    WM5_END_DEBUG_STREAM_SAVE(Controller, target);
}
开发者ID:fishxz,项目名称:omni-bot,代码行数:17,代码来源:Wm5Controller.cpp


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