public MyGame(Game game, GraphicsDeviceManager graph) { Game = game; _graphics = graph; Main.MyGame.GraphicDevice = Game.GraphicsDevice; this._log = new Log(); this._texturesManager = new Texture2DManager(Game.Content); _graphics.PreferredBackBufferHeight= Config.GAME_HEIGHT; _graphics.PreferredBackBufferWidth = Config.GAME_WIDTH; _graphics.ApplyChanges(); Game.Window.Title = Config.GAME_NAME; }
public Texture2DManager(ContentManager content) { _instance = this; _content = content; _textures = new Dictionary<string, Texture2D>(); }