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