3 #if SILICONSTUDIO_PLATFORM_ANDROID 
    5 using System.Collections.Generic;
 
    7 using System.Reflection;
 
    8 using SiliconStudio.Paradox.Graphics;
 
   10 namespace SiliconStudio.
Paradox.Games
 
   12     internal class GamePlatformAndroid : GamePlatform, IGraphicsDeviceFactory
 
   14         public GamePlatformAndroid(GameBase game) : base(game)
 
   18         public override string DefaultAppDirectory
 
   22                 var assemblyUri = 
new Uri(Assembly.GetEntryAssembly().CodeBase);
 
   23                 return Path.GetDirectoryName(assemblyUri.LocalPath);
 
   27         internal override GameWindow[] GetSupportedGameWindows()
 
   29             return new GameWindow[] { 
new GameWindowAndroid() };
 
   32         public override List<GraphicsDeviceInformation> FindBestDevices(GameGraphicsParameters preferredParameters)
 
   34             var gameWindowAndroid = gameWindow as GameWindowAndroid;
 
   35             if (gameWindowAndroid != null)
 
   38                 var deviceInfo = 
new GraphicsDeviceInformation
 
   40                         Adapter = GraphicsAdapterFactory.Default,
 
   42                         PresentationParameters = 
new PresentationParameters(gameWindowAndroid.ClientBounds.Width,
 
   43                                                                             gameWindowAndroid.ClientBounds.Height,
 
   44                                                                             gameWindowAndroid.NativeWindow)
 
   47                                 BackBufferFormat = preferredParameters.PreferredBackBufferFormat,
 
   48                                 DepthStencilFormat = preferredParameters.PreferredDepthStencilFormat,
 
   52                 return new List<GraphicsDeviceInformation>() { deviceInfo };
 
   54             return base.FindBestDevices(preferredParameters);
 
   57         public override void DeviceChanged(GraphicsDevice currentDevice, GraphicsDeviceInformation deviceInformation)
 
GraphicsProfile
Identifies the set of supported devices for the demo based on device capabilities.