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


C# Mogre.Clear方法代码示例

本文整理汇总了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;
 }
开发者ID:andyhebear,项目名称:likeleon,代码行数:9,代码来源:NodeEditor.cs

示例2: GetObjectProperties

 public override void GetObjectProperties(Mogre.NameValuePairList retList)
 {
     retList.Clear();
     retList["Name"] = this.name;
 }
开发者ID:andyhebear,项目名称:likeleon,代码行数:5,代码来源:MaterialEditor.cs

示例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);
        }
开发者ID:andyhebear,项目名称:likeleon,代码行数:31,代码来源:SceneManagerEditor.cs

示例4: GetObjectProperties

 public virtual void GetObjectProperties(Mogre.NameValuePairList retList)
 {
     retList.Clear();
     retList["Name"] = Name;
 }
开发者ID:andyhebear,项目名称:likeleon,代码行数:5,代码来源:BaseEditor.cs

示例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++;
            }
        }
开发者ID:andyhebear,项目名称:likeleon,代码行数:37,代码来源:ViewportEditor.cs

示例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);
 }
开发者ID:andyhebear,项目名称:likeleon,代码行数:9,代码来源:CameraEditor.cs


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