GraphicsDevice Class (Microsoft.Xna.Framework.Graphics)
Namespace: Microsoft.Xna.Framework.Graphics
Assembly: MonoGame.Framework (MonoGame.Framework.dll 3.8.0.1082)
Assembly: MonoGame.Framework (MonoGame.Framework.dll 3.8.0.1082)
- C#
- VB
- F#
public class GraphicsDevice : IDisposable
Syntax for VB is not yet implemented.
Syntax for F# is not yet implemented.
The GraphicsDevice type exposes the following members.
Platforms | Name | Description | |
---|---|---|---|
GraphicsDevice(GraphicsAdapter, GraphicsProfile, PresentationParameters) | Initializes a new instance of the GraphicsDevice class. | ||
GraphicsDevice(GraphicsAdapter, GraphicsProfile, bool, PresentationParameters) | Initializes a new instance of the GraphicsDevice class. |
Platforms | Name | Description | |
---|---|---|---|
Adapter | |||
BlendFactor | The color used as blend factor when alpha blending. | ||
BlendState | |||
DepthStencilState | |||
DiscardColor | Get or set the color a RenderTarget2D is cleared to when it is set. | ||
DisplayMode | |||
GraphicsDebug | Access debugging APIs for the graphics subsystem. | ||
GraphicsDeviceStatus | |||
GraphicsProfile | |||
Handle | Returns a handle to internal device object. Valid only on DirectX platforms. For usage, convert this to SharpDX.Direct3D11.Device. | ||
Indices | |||
IsContentLost | |||
IsDisposed | |||
Metrics | The rendering information for debugging and profiling. The metrics are reset every frame after draw within Present(). | ||
PresentationParameters | |||
RasterizerState | |||
RenderTargetCount | |||
ResourcesLost | |||
SamplerStates | |||
ScissorRectangle | |||
Textures | |||
UseHalfPixelOffset | Indicates if DX9 style pixel addressing or current standard
pixel addressing should be used. This flag is set to
|
||
VertexSamplerStates | |||
VertexTextures | |||
Viewport |
Top
Platforms | Name | Description | |
---|---|---|---|
DeviceLost | |||
DeviceReset | |||
DeviceResetting | |||
Disposing | |||
ResourceCreated | |||
ResourceDestroyed |
Supported in:
Windows DirectX Desktop
Linux Desktop
Windows OpenGL Desktop
Web
Windows DirectX Desktop
Linux Desktop
Windows OpenGL Desktop
Web