本文整理汇总了C#中Mogre.Clear方法的典型用法代码示例。如果您正苦于以下问题:C# Mogre.Clear方法的具体用法?C# Mogre.Clear怎么用?C# Mogre.Clear使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Mogre
的用法示例。
在下文中一共展示了Mogre.Clear方法的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: GetObjectProperties
public override void GetObjectProperties(Mogre.NameValuePairList retList)
{
retList.Clear();
retList["Name"] = this.name;
retList["Position"] = Mogre.StringConverter.ToString(this.position);
retList["Orientation"] = Mogre.StringConverter.ToString(this.orientation);
retList["Scale"] = Mogre.StringConverter.ToString(this.scale);
retList["AutoTrackTarget"] = this.autoTrackTarget;
}
示例2: GetObjectProperties
public override void GetObjectProperties(Mogre.NameValuePairList retList)
{
retList.Clear();
retList["Name"] = this.name;
}
示例3: GetObjectProperties
public override void GetObjectProperties(Mogre.NameValuePairList retList)
{
retList.Clear();
retList["Name"] = this.name;
retList["SceneManagerType"] = SceneMangerType;
retList["Ambient"] = Mogre.StringConverter.ToString(this.ambient);
retList["SkyBoxActive"] = Mogre.StringConverter.ToString(this.skyBoxActive);
retList["SkyBoxMaterial"] = this.skyBoxMaterial;
retList["SkyBoxDistance"] = Mogre.StringConverter.ToString(this.skyBoxDistance);
switch (this.fogMode)
{
case Mogre.FogMode.FOG_NONE:
retList["FogMode"] = "None";
break;
case Mogre.FogMode.FOG_LINEAR:
retList["FogMode"] = "Linear";
break;
case Mogre.FogMode.FOG_EXP:
retList["FogMode"] = "Exp";
break;
case Mogre.FogMode.FOG_EXP2:
retList["FogMode"] = "Exp2";
break;
}
retList["FogColour"] = Mogre.StringConverter.ToString(this.fogColour);
retList["FogStart"] = Mogre.StringConverter.ToString(this.fogStart);
retList["FogEnd"] = Mogre.StringConverter.ToString(this.fogEnd);
retList["FogDensity"] = Mogre.StringConverter.ToString(this.fogDensity);
}
示例4: GetObjectProperties
public virtual void GetObjectProperties(Mogre.NameValuePairList retList)
{
retList.Clear();
retList["Name"] = Name;
}
示例5: GetObjectProperties
public override void GetObjectProperties(Mogre.NameValuePairList retList)
{
retList.Clear();
retList["Name"] = this.name;
retList["Colour"] = Mogre.StringConverter.ToString(this.colour);
retList["Index"] = Mogre.StringConverter.ToString(ViewportIndex);
retList["Dimensions"] = Mogre.StringConverter.ToString(this.dimensions);
retList["Overlays"] = Mogre.StringConverter.ToString(this.overlays);
retList["Skies"] = Mogre.StringConverter.ToString(this.skies);
retList["Shadows"] = Mogre.StringConverter.ToString(this.shadows);
retList["CamPosition"] = Mogre.StringConverter.ToString(ViewCamera.Position);
retList["CamOrientation"] = Mogre.StringConverter.ToString(ViewCamera.Orientation);
retList["CamFOV"] = Mogre.StringConverter.ToString(ViewCamera.FOV);
retList["CamPolyMode"] = Mogre.StringConverter.ToString((int)ViewCamera.PolygonMode);
retList["CamClipDistance"] = Mogre.StringConverter.ToString(ViewCamera.ClipDistance);
Mogre.CompositorManager comMngr = Mogre.CompositorManager.Singleton;
if (!comMngr.HasCompositorChain(this.handle))
return;
int count = 0;
Mogre.CompositorChain chain = comMngr.GetCompositorChain(this.handle);
foreach (Mogre.CompositorInstance compositor in chain.GetCompositors())
{
Mogre.Compositor sub = compositor.Compositor;
if (sub == null)
continue;
if (sub.Name.Substring(1, 7) == "_Hydrax")
continue;
string compId = "Compositor" + Mogre.StringConverter.ToString(count);
retList[compId + "Name"] = sub.Name;
retList[compId + "Enabled"] = Mogre.StringConverter.ToString(compositor.Enabled);
count++;
}
}
示例6: GetObjectProperties
public override void GetObjectProperties(Mogre.NameValuePairList retList)
{
retList.Clear();
retList["Name"] = Name;
retList["Position"] = Mogre.StringConverter.ToString(Position);
retList["Orientation"] = Mogre.StringConverter.ToString(Orientation);
retList["ClipDistance"] = Mogre.StringConverter.ToString(ClipDistance);
retList["FOV"] = Mogre.StringConverter.ToString(FOV);
}