Paradox Game Engine  v1.0.0 beta06
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Events Macros Pages
GraphicsDeviceFactory.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 namespace SiliconStudio.Paradox.Graphics
4 {
5  /// <summary>
6  /// Factory for <see cref="GraphicsDevice"/>.
7  /// </summary>
8  /*public abstract class GraphicsDeviceFactory : ComponentBase
9  {
10  private GraphicsAdapterFactory AdapterFactory { get; set; }
11 
12  internal GraphicsDeviceFactory(GraphicsAdapterFactory adapterFactory)
13  {
14  AdapterFactory = adapterFactory;
15  }
16 
17  /// <summary>
18  /// Initializes a new instance of the <see cref="GraphicsDevice"/> class using the default GraphicsAdapter
19  /// and the Level10 <see cref="GraphicsProfile"/>.
20  /// </summary>
21  /// <returns>An instance of <see cref="GraphicsDevice"/></returns>
22  public GraphicsDevice New()
23  {
24  return New(GraphicsProfile.Level10);
25  }
26 
27  /// <summary>
28  /// Initializes a new instance of the <see cref="GraphicsDevice"/> class using the default GraphicsAdapter.
29  /// </summary>
30  /// <param name="graphicsProfile">The graphics profile.</param>
31  /// <returns>An instance of <see cref="GraphicsDevice"/></returns>
32  public GraphicsDevice New(GraphicsProfile graphicsProfile)
33  {
34  return New(null, graphicsProfile);
35  }
36 
37  /// <summary>
38  /// Initializes a new instance of the <see cref="GraphicsDevice"/> class using the Level10 <see cref="GraphicsProfile"/>.
39  /// </summary>
40  /// <param name="adapter">The GraphicsAdapter to use with this graphics device.</param>
41  /// <returns>An instance of <see cref="GraphicsDevice"/></returns>
42  public GraphicsDevice New(GraphicsAdapter adapter)
43  {
44  return New(adapter, GraphicsProfile.Level10);
45  }
46 
47  /// <summary>
48  /// Initializes a new instance of the <see cref="GraphicsDevice"/> class.
49  /// </summary>
50  /// <param name="adapter">The GraphicsAdapter to use with this graphics device.</param>
51  /// <param name="graphicsProfile">The graphics profile.</param>
52  /// <returns>An instance of <see cref="GraphicsDevice"/></returns>
53  public GraphicsDevice New(GraphicsAdapter adapter, GraphicsProfile graphicsProfile)
54  {
55  return New(adapter ?? AdapterFactory.Default, graphicsProfile, null);
56  }
57 
58  /// <summary>
59  /// Initializes a new instance of the <see cref="GraphicsDevice"/> class.
60  /// </summary>
61  /// <param name="graphicsProfile">The graphics profile.</param>
62  /// <param name="presentationParameters">The presentation parameters.</param>
63  /// <returns>An instance of <see cref="GraphicsDevice"/></returns>
64  public GraphicsDevice New(GraphicsProfile graphicsProfile,
65  PresentationParameters presentationParameters)
66  {
67  return New(AdapterFactory.Default, graphicsProfile, presentationParameters);
68  }
69 
70  /// <summary>
71  /// Initializes a new instance of the <see cref="GraphicsDevice"/> class.
72  /// </summary>
73  /// <param name="adapter">The GraphicsAdapter to use with this graphics device. null is for default.</param>
74  /// <param name="graphicsProfile">The graphics profile.</param>
75  /// <param name="presentationParameters">The presentation parameters.</param>
76  /// <returns>An instance of <see cref="GraphicsDevice"/></returns>
77  public abstract GraphicsDevice New(GraphicsAdapter adapter, GraphicsProfile graphicsProfile,
78  PresentationParameters presentationParameters);
79  }*/
80 }