public static void Destroy( ) { Assets.Destroy( ); Screen.MainMenu.Dispose( ); UIRenderer.SharedRenderer.Dispose( ); //LightManager.Destroy( ); State.Dispose( ); ColorProgram.Destroy( ); MatrixProgram.Destroy( ); FBOProgram.Destroy( ); GaussianBlurProgram.Destroy( ); DarkenProgram.Destroy( ); UIAbilityIconProgram.Destroy( ); LineProgram.Destroy( ); }
private void LoadLinePrograms() { _lineProgramCache = new Dictionary <CompilationUnit, LineProgram>(); foreach (var compilationUnit in _data.InfoSection.CompilationUnits) { var die = compilationUnit.DIEList?.FirstOrDefault(); if (die == null) { _lineProgramCache[compilationUnit] = null; continue; } var attr = die.Attributes?.FirstOrDefault(a => a.Name == EAttributes.DW_AT_stmt_list); if (attr == null) { _lineProgramCache[compilationUnit] = null; continue; } _lineProgramCache[compilationUnit] = new LineProgram(_stream, Convert.ToInt64(attr.Value)); } }
public static void Initialize( ) { ColorProgram.Init( ); MatrixProgram.Init( ); FBOProgram.Init( ); GaussianBlurProgram.Init( ); DarkenProgram.Init( ); UIAbilityIconProgram.Init( ); LineProgram.Init( ); //LightManager.Init( ); UIRenderer.SharedRenderer = new UIRenderer(Assets.GetSprite("interface")); EntityRenderer.Init( ); #if __ANDROID__ State = new LocalCopyState(new AndroidDatabaseProvider((Android.App.Activity)Assets.Context)); #endif Screen.MainMenu.Load( ); Screen.Active = Screen.MainMenu; Window.Background = new Color(225, 225, 225, 255); }