Exemple #1
0
        protected override Texture2D GetLocalCache()
        {
            byte[] bytes = null;
            if (jpg)
            {
                bytes = ESFile.LoadRaw(CacheName + ".jpg");
            }
            else
            {
                bytes = ESFile.LoadRaw(CacheName + ".png");
            }
            TextureCache cache = new TextureCache();

            cache.Init(_cacheDataConfig.Value, bytes);

            return(cache.GetTexture2D());
        }