GraphicsDevice Class (Microsoft.Xna.Framework.Graphics)

System.Object
   Microsoft.Xna.Framework.Graphics.GraphicsDevice

Namespace: Microsoft.Xna.Framework.Graphics
Assembly: MonoGame.Framework (MonoGame.Framework.dll 3.8.0.362)
  • 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 Initializes a new instance of the GraphicsDevice class. 
Top
  Platforms Name Description
Adapter  
BlendFactor The color used as blend factor when alpha blending. 
BlendState  
DepthStencilState  
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  
VertexSamplerStates  
VertexTextures  
Viewport  
Top
  Platforms Name Description
Clear(Color)  
Clear(ClearOptions, Color, float, int)  
Clear(ClearOptions, Vector4, float, int)  
CreateDeviceResources Create graphics device specific resources. 
Dispose(bool)  
Dispose()  (Implements IDisposable.Dispose().)
DrawIndexedPrimitives(PrimitiveType, int, int, int, int, int) Draw geometry by indexing into the vertex buffer. 
DrawIndexedPrimitives(PrimitiveType, int, int, int) Draw geometry by indexing into the vertex buffer. 
DrawInstancedPrimitives(PrimitiveType, int, int, int, int, int, int) Draw instanced geometry from the bound vertex buffers and index buffer. 
DrawInstancedPrimitives(PrimitiveType, int, int, int, int) Draw instanced geometry from the bound vertex buffers and index buffer. 
DrawPrimitives Draw primitives of the specified type from the currently bound vertexbuffers without indexing. 
DrawUserIndexedPrimitives<T>(PrimitiveType, T[], int, int, Int32[], int, int, VertexDeclaration) Draw primitives of the specified type by indexing into the given array of vertices with 32-bit indices. 
DrawUserIndexedPrimitives<T>(PrimitiveType, T[], int, int, Int32[], int, int) Draw primitives of the specified type by indexing into the given array of vertices with 32-bit indices. 
DrawUserIndexedPrimitives<T>(PrimitiveType, T[], int, int, Int16[], int, int, VertexDeclaration) Draw primitives of the specified type by indexing into the given array of vertices with 16-bit indices. 
DrawUserIndexedPrimitives<T>(PrimitiveType, T[], int, int, Int16[], int, int) Draw primitives of the specified type by indexing into the given array of vertices with 16-bit indices. 
DrawUserPrimitives<T>(PrimitiveType, T[], int, int, VertexDeclaration) Draw primitives of the specified type from the data in the given array of vertices without indexing. 
DrawUserPrimitives<T>(PrimitiveType, T[], int, int) Draw primitives of the specified type from the data in an array of vertices without indexing. 
Finalize  (Overrides object.Finalize().)
Flush Sends queued-up commands in the command buffer to the graphics processing unit (GPU). 
GetBackBufferData<T>(T[]) Gets the Pixel data of what is currently drawn on screen. The format is whatever the current format of the backbuffer is. 
GetBackBufferData<T>(T[], int, int)  
GetBackBufferData<T>(Nullable<Rectangle>, T[], int, int)  
GetRenderTargets(RenderTargetBinding[])  
GetRenderTargets()  
PlatformClear  
PlatformPresent  
Present  
Reset()  
Reset(PresentationParameters)  
SetRenderTarget(RenderTargetCube, CubeMapFace)  
SetRenderTarget(RenderTarget2D, int)  
SetRenderTarget(RenderTarget3D, int)  
SetRenderTarget(RenderTarget2D)  
SetRenderTargets  
SetVertexBuffer(VertexBuffer)  
SetVertexBuffer(VertexBuffer, int)  
SetVertexBuffers  
Top
Supported in:

    
 Windows DirectX Desktop
    
 Linux Desktop
    
 Windows OpenGL Desktop
    
 Web