Esempio n. 1
0
 // PRIVATE SECTION
 private GraphicHandler()
 {
     m_thisRef = this;
     MTexture.setGraphicHandler(ref m_thisRef);
     MText.setGraphicHandler(ref m_thisRef);
     MSound.setDeviceHandler(ref m_thisRef);
 }
Esempio n. 2
0
 public MainApp()
 {
     m_thisRef           = this;
     m_graphicHandlerRef = GraphicHandler.getInstance();
     m_graphicHandlerRef.setGameInstance(ref m_thisRef);
     Content.RootDirectory = "Content";
 }
Esempio n. 3
0
        static public GraphicHandler getInstance()
        {
            if (m_instance == null)
            {
                m_instance = new GraphicHandler();
            }

            return(m_instance);
        }