GraphicsDevice.GraphicsDevice Method (Microsoft.Xna.Framework.Graphics)

Initializes a new instance of the GraphicsDevice class.

Namespace: Microsoft.Xna.Framework.Graphics
Assembly: MonoGame.Framework (MonoGame.Framework.dll 3.8.0.964)
  • C#
  • VB
  • F#
public GraphicsDevice(
	GraphicsAdapter adapter, 
	GraphicsProfile graphicsProfile, 
	bool preferHalfPixelOffset, 
	PresentationParameters presentationParameters
)

Syntax for VB is not yet implemented.

Syntax for F# is not yet implemented.

Parameters

adapter
Type: Microsoft.Xna.Framework.Graphics.GraphicsAdapter
The graphics adapter.
graphicsProfile
Type: Microsoft.Xna.Framework.Graphics.GraphicsProfile
The graphics profile.
preferHalfPixelOffset
Type: System.Boolean
Indicates if DX9 style pixel addressing or current standard pixel addressing should be used. This value is passed to UseHalfPixelOffset
presentationParameters
Type: Microsoft.Xna.Framework.Graphics.PresentationParameters
The presentation options.
Supported in:

    
 Windows DirectX Desktop
    
 Linux Desktop
    
 Windows OpenGL Desktop
    
 Web