GraphicsDevice Methods

Public Methods

Name Description
Public Method Clear Overloaded. Clears resource buffers.
Public Method Dispose Overloaded. Immediately releases the unmanaged resources used by this object.
Public Method DrawIndexedPrimitives Renders the specified geometric primitive, based on indexing into an array of vertices.
Public Method DrawInstancedPrimitives Draws a series of instanced models.
Public Method DrawPrimitives Renders a sequence of non-indexed geometric primitives of the specified type from the current set of data input streams.
Public Method DrawUserIndexedPrimitives Overloaded. Renders geometric primitives.
Public Method DrawUserPrimitives Overloaded. Renders geometric primitives.
Public Method Equals (Inherited from Object.)
Public Method GetBackBufferData Overloaded. Gets the contents of the back buffer.
Public Method GetHashCode (Inherited from Object.)
Public Method GetRenderTargets Gets a render target surface.
Public Method GetType (Inherited from Object.)
Public Method GetVertexBuffers Gets the vertex buffers.
Public Method Present Overloaded. Presents the display with the contents of the next buffer in the sequence of back buffers owned by the GraphicsDevice.
Public Method Reset Overloaded. Resets the presentation parameters for the current GraphicsDevice.
Public Method SetRenderTarget Overloaded. Sets a new color buffer for a GraphicsDevice.
Public Method SetRenderTargets Sets an array of render targets.
Public Method SetVertexBuffer Overloaded. Sets or binds a vertex buffer to a device.
Public Method SetVertexBuffers Sets the vertex buffers.
Public Method ToString (Inherited from Object.)

Protected Methods

Name Description
Protected Method Finalize Allows this object to attempt to free resources and perform other cleanup operations before garbage collection reclaims the object.
Protected Method MemberwiseClone (Inherited from Object.)

See Also

Reference

GraphicsDevice Class
Microsoft.Xna.Framework.Graphics Namespace