public void SetOverridedProvider(string filename, IOverridedTextureProvider provider) { if (provider == null) { _overridedProviders.Remove(filename); } else { _overridedProviders[filename] = provider; } }
private async void LoadOverrideAsync(RenderableTexture texture, string textureName, IOverridedTextureProvider provider, DeviceContextHolder contextHolder) { var overrided = await provider.GetOverridedDataAsync(textureName); if (overrided != null) { texture.LoadOverrideAsync(overrided, contextHolder.Device).Forget(); } }