Beispiel #1
0
        internal static void Dispose()
        {
            _font                 = null;
            _fontSmall            = null;
            _uiTextureRegionAtlas = null;
            _uiStylesheet         = null;
            Stylesheet.Current    = null;

            if (_assetManager != null)
            {
                _assetManager.ClearCache();
                _assetManager = null;
            }

            _whiteRegion = null;
            if (_white != null)
            {
                _white.Dispose();
                _white = null;
            }

#if !STRIDE
            if (_uiRasterizerState != null)
            {
                _uiRasterizerState.Dispose();
                _uiRasterizerState = null;
            }
#endif
        }