public MonoGameShader(Loon game, string name) { if (!name.EndsWith(".fx")) { name += ".fx"; } ContentManager contentManager = game.GetContentManager(); shader = contentManager.Load <Effect>(name); shader.CurrentTechnique = shader.Techniques[0]; }
public MonoGameGame(LSetting config, Loon game) : base(config, game) { this._plat = game; this._start = JavaSystem.NanoTime(); this._contentManager = new MonoGameContentManager(game.GetContentManager().ServiceProvider, game.GetContentManager().RootDirectory); this._asyn = new MonoGameAsyn <object>(_log, frame); this._log = new MonoGameLog(config.appName); this._support = new NativeSupport(); this._assets = new MonoGameAssets(this); this._inputer = new MonoGameInputMake(this); this._graphics = new MonoGameGraphics(this, game.GetGraphicsDevice(), config.Width, config.Height); this.InitProcess(); }