public PixelObject CreatePixelTexture(string name, Color color) { PixelObject newPixel = new PixelObject(name, GraphicsDevice, color); _textures[name] = newPixel; return(newPixel); }
protected override void LoadContent() { base.LoadContent(); _systemReady = true; try { FromInternal("{error}", "Error.derpyeyes"); FromInternal("{notex}", "Error.notexture"); FromInternal("{achievement}", "Data.achievements"); FromInternal("{bits}", "UI.bitcollection"); FromInternal("{load}", "Loading.loadingscreen_filler"); var Effect = new Objects.Graphics.BasicEffectObject("{basic_effect}"); var smallFont = new FontObject("{smallfont}", @"fonts\celestia_redux"); _fonts["{smallfont}"] = smallFont; var largeFont = new FontObject("{largefont}", @"fonts\celestia_redux_large"); _fonts["{largefont}"] = largeFont; _frameCapture = new TargetObject("{screen}", GraphicsDevice, EngineGlobals.Settings.WindowWidth, EngineGlobals.Settings.WindowHeight); _empty = CreatePixelTexture("{empty}", Color.Transparent); _singleWhite = CreatePixelTexture("{single}"); } catch (System.Exception ex) { EquestriEngine.ErrorMessage = ex.Message; } LoadTextures(); LoadFonts(); LoadEffects(); LoadSkeletons(); }
protected override void LoadContent() { _windowTexture = EngineGlobals.GameReference.AssetManager.CreatePixelTexture("{console}"); _renderedText = EngineGlobals.GameReference.AssetManager.CreateTargetObject("{rendred_text}", EngineGlobals.Settings.WindowWidth, 256); base.LoadContent(); }