Paradox Game Engine  v1.0.0 beta06
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Events Macros Pages
GraphicsAdapter.OpenGL.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 #if SILICONSTUDIO_PARADOX_GRAPHICS_API_OPENGL
4 namespace SiliconStudio.Paradox.Graphics
5 {
6  /// <summary>
7  /// Provides methods to retrieve and manipulate graphics adapters.
8  /// </summary>
9  public partial class GraphicsAdapter
10  {
11  internal GraphicsAdapter()
12  {
13  outputs = new [] { new GraphicsOutput() };
14  }
15 
16  public bool IsProfileSupported(GraphicsProfile graphicsProfile)
17  {
18  // TODO: Check OpenGL version?
19  // TODO: ES specific code?
20  return true;
21  }
22 
23  /// <summary>
24  /// Gets the description of this adapter.
25  /// </summary>
26  /// <value>The description.</value>
27  public string Description
28  {
29  get { return "Default OpenGL Adapter"; }
30  }
31 
32  /// <summary>
33  /// Determines if this instance of GraphicsAdapter is the default adapter.
34  /// </summary>
35  public bool IsDefaultAdapter
36  {
37  get { return true; }
38  }
39 
40  /// <summary>
41  /// Gets or sets the vendor identifier.
42  /// </summary>
43  /// <value>
44  /// The vendor identifier.
45  /// </value>
46  public int VendorId
47  {
48  get { return 0; }
49  }
50  }
51 }
52 
53 #endif
GraphicsProfile
Identifies the set of supported devices for the demo based on device capabilities.