Example #1
0
        public virtual void Destroy()
        {
            Assets.Destroy();

            ColorProgram.Destroy();
            MatrixProgram.Destroy();
            FBOProgram.Destroy();
            ParticleProgram.Destroy();
            GaussianBlurProgram.Destroy();
            DarkenProgram.Destroy();
        }
Example #2
0
        public virtual void Init()
        {
            ColorProgram.Init();
            MatrixProgram.Init();
            FBOProgram.Init();
            ParticleProgram.Init();
            GaussianBlurProgram.Init();
            DarkenProgram.Init();

            UIRenderer.Init();
            UIRenderer.Texture = Assets.GetSprite("interface");
        }
Example #3
0
        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( );
        }
Example #4
0
        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);
        }
Example #5
0
 private void Init()
 {
     this.TextureProgram = new TextureProgram();
     this.ColorProgram   = new ColorProgram();
     this.hasBegun       = false;
 }