public cMenu(GraphicsDeviceManager gd, ContentManager cm, GameWindow gw) { _instance = this; _graphics = gd; _contentManager = cm; //_video = new cVideo(gw); _screenWidth = (int)cCamera.Instance.Bounds.Y; _screenHeight = (int)cCamera.Instance.Bounds.Z; _buttons = new List<cMenuButton>(); _MenuWindow = new cMenuWindow(gd, cm); _bitmapFont = cFontManager.Instance.getFont("Treb11"); //_bitmapFont.Reset(gd.GraphicsDevice); LoadGraphicsContent(); }
protected override void LoadGraphicsContent(bool loadAllContent) { GraphicsDevice gd = _graphics.GraphicsDevice; cFontManager.Instance.LoadGraphicsContent(gd); if (loadAllContent) { _camera = new cCamera(0, 0, 800, 600); _engine = new cEngine(_graphics, _contentManager); _menu = new cMenu(_graphics, _contentManager, Window); _menu.startMenus(); //_video = new cVideo(Window); } base.LoadGraphicsContent(loadAllContent); }