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

            return(m_instance);
        }