Example #1
0
        //! Loads a new context stack after clearing the existing one
        public void LoadContextStack(string path)
        {
            PopAllContexts(true);

            m_ContextStack = new ContextStack();
            m_ContextStack.LoadFromXML(path, null);
            m_ContextStack.Init();
        }
Example #2
0
 //! initializes the engine
 public void Init()
 {
     // create core singletons
     EntityRenderer.CreateInstance();
     GraphicsManager.CreateInstance();
     ObjectManager.CreateInstance();
     VisitorManager.CreateInstance();
     StatsManager.CreateInstance();
     m_ContextStack = new ContextStack();
 }