Exemple #1
0
 public void SetOverridedProvider(string filename, IOverridedTextureProvider provider) {
     if (provider == null) {
         _overridedProviders.Remove(filename);
     } else {
         _overridedProviders[filename] = provider;
     }
 }
Exemple #2
0
 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();
     }
 }