/// <summary>
 /// Initializes a new instance of the <see cref="GraphicsDevice" /> class.
 /// </summary>
 /// <param name="adapter">The adapter.</param>
 /// <param name="creationFlags">The creation flags.</param>
 /// <param name="windowHandle">The window handle.</param>
 /// <param name="graphicsProfiles">The graphics profiles.</param>
 /// <returns>An instance of <see cref="GraphicsDevice" /></returns>
 public static GraphicsDevice New(GraphicsAdapter adapter, DeviceCreationFlags creationFlags = DeviceCreationFlags.None, WindowHandle windowHandle = null, params GraphicsProfile[] graphicsProfiles)
 {
     return(new GraphicsDevice(adapter ?? GraphicsAdapterFactory.Default, graphicsProfiles, creationFlags, windowHandle));
 }
Ejemplo n.º 2
0
 /// <summary>
 /// Default constructor to initialize fields that are not explicitly set to avoid warnings at compile time.
 /// </summary>
 internal GraphicsOutput()
 {
     adapter = null;
     supportedDisplayModes = null;
     desktopBounds         = Rectangle.Empty;
 }