Paradox Game Engine  v1.0.0 beta06
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Events Macros Pages
AssetCompilerContextExtensions.cs
Go to the documentation of this file.
1 // Copyright (c) 2014 Silicon Studio Corp. (http://siliconstudio.co.jp)
2 // This file is distributed under GPL v3. See LICENSE.md for details.
3 using SiliconStudio.Assets.Compiler;
4 using SiliconStudio.Paradox.Graphics;
5 
6 namespace SiliconStudio.Paradox.Assets
7 {
8  internal static class AssetCompilerContextExtensions
9  {
10  public static GraphicsPlatform GetGraphicsPlatform(this AssetCompilerContext context)
11  {
12  return context.Properties.Get(ParadoxConfig.GraphicsPlatform);
13  }
14 
15  public static TextureQuality GetTextureQuality(this AssetCompilerContext context)
16  {
17  return context.Properties.Get(ParadoxConfig.TextureQuality);
18  }
19 
20  public static GraphicsProfile GetGraphicsProfile(this AssetCompilerContext context)
21  {
22  return context.Properties.Get(ParadoxConfig.GraphicsProfile);
23  }
24  }
25 }
GraphicsPlatform
The graphics platform.
TextureQuality
The desired texture quality.
The context used when compiling an asset in a Package.
GraphicsProfile
Identifies the set of supported devices for the demo based on device capabilities.