private static Texture2D CacheTexture(string key) { if (_cache.ContainsKey(key)) return _cache[key]; _cache[key] = GetBitmap(key).ToTexture(GraphicsDevice); return _cache[key]; }