Exemplo n.º 1
0
 public OverlayManager()
     : base()
 {
     // Scripting is supported by this manager
     ScriptPatterns.Add("*.overlay");
     ResourceGroupManager.Instance.RegisterScriptLoader(this);
 }
Exemplo n.º 2
0
        /// <summary>
        /// private constructor.  This class cannot be instantiated externally.
        /// </summary>
        public MaterialManager()
            : base()
        {
            if (instance == null)
            {
                instance = this;
            }

            SetDefaultTextureFiltering(TextureFiltering.Bilinear);
            DefaultAnisotropy = 1;

            // Loading order
            LoadingOrder = 100.0f;

#if !AXIOM_USENEWCOMPILERS
            // Scripting is supported by this manager
            ScriptPatterns.Add("*.program");
            ScriptPatterns.Add("*.material");
            ResourceGroupManager.Instance.RegisterScriptLoader(this);
#endif
            // AXIOM_USENEWCOMPILERS
            // Material Schemes
            ActiveScheme      = MaterialManager.DefaultSchemeName;
            ActiveSchemeIndex = 0;
            //_schemes.Add(_activeSchemeName, _activeSchemeIndex);
            GetSchemeIndex(ActiveScheme);

            // Resource type
            ResourceType = "Material";

            // Register with resource group manager
            ResourceGroupManager.Instance.RegisterResourceManager(ResourceType, this);
        }
Exemplo n.º 3
0
 internal Quake3ShaderManager()
     : base()
 {
     if (instance == null)
     {
         instance     = this;
         LoadingOrder = 110.0f;
         ScriptPatterns.Add("*.shader");
         ResourceGroupManager.Instance.RegisterScriptLoader(this);
     }
     else
     {
         throw new AxiomException("Cannot create another instance of {0}. Use Instance property instead", GetType().Name);
     }
 }
Exemplo n.º 4
0
        /// <summary>
        ///     Internal constructor.  This class cannot be instantiated externally.
        /// </summary>
        public FontManager()
            : base()
        {
            // Loading order
            LoadingOrder = 200.0f;

            // Scripting is supported by this manager
            ScriptPatterns.Add("*.fontdef");
            // Register scripting with resource group manager
            ResourceGroupManager.Instance.RegisterScriptLoader(this);

            // Resource type
            ResourceType = "Font";

            // Register with resource group manager
            ResourceGroupManager.Instance.RegisterResourceManager(ResourceType, this);
        }
Exemplo n.º 5
0
        /// <summary>
        ///     Internal constructor.  This class cannot be instantiated externally.
        /// </summary>
        public CompositorManager()
            : base()
        {
            // OGRE initializes this manager here in the constructor. For consistency Axiom calls Initialize() directly
            // in Root.ctor(), this does change the order in which things are initialized.
            //Initialize();

            this.customCompositionPassesIndex =
                new ReadOnlyDictionary<string, ICustomCompositionPass>( this.customCompositionPasses );
            this.compositorLogicIndex = new ReadOnlyDictionary<string, ICompositorLogic>( this.compositorLogics );
            //Load right after materials
            LoadingOrder = 110.0f;

            ScriptPatterns.Add( "*.compositor" );
            ResourceGroupManager.Instance.RegisterScriptLoader( this );

            ResourceType = "Compositor";
            ResourceGroupManager.Instance.RegisterResourceManager( ResourceType, this );
        }