Exemplo n.º 1
0
 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;
 }
Exemplo n.º 2
0
 public override void GetObjectProperties(Mogre.NameValuePairList retList)
 {
     retList.Clear();
     retList["Name"] = this.name;
 }
Exemplo n.º 3
0
        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);
        }
Exemplo n.º 4
0
 public virtual void GetObjectProperties(Mogre.NameValuePairList retList)
 {
     retList.Clear();
     retList["Name"] = Name;
 }
Exemplo n.º 5
0
        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++;
            }
        }
Exemplo n.º 6
0
 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);
 }