Export (0) Print
Expand All
1 out of 1 rated this helpful - Rate this topic

GraphicsDevice Members

The following tables list the members exposed by the GraphicsDevice type.

NameDescription
Public MethodGraphicsDeviceCreates an instance of this object.
NameDescription
Public PropertyAdapterGets the graphics adapter.
Public PropertyBlendFactorGets or sets the color used for a constant-blend factor during alpha blending. The default value is Color.White.
Public PropertyBlendState Gets or sets a system-defined instance of a blend state object initialized for alpha blending. The default value is BlendState.Opaque.
Public PropertyDepthStencilState Gets or sets a system-defined instance of a depth-stencil state object. The default value is DepthStencilState.Default.
Public PropertyDisplayMode Retrieves the display mode's spatial resolution, color resolution, and refresh frequency.
Public PropertyGraphicsDeviceStatusRetrieves the status of the device.
Public PropertyGraphicsProfileGets the graphics profile. The default value is GraphicsProfile.Reach.
Public PropertyIndices Gets or sets index data. The default value is null.
Public PropertyIsDisposedGets a value that indicates whether the object is disposed.
Public PropertyMultiSampleMaskGets or sets a bitmask controlling modification of the samples in a multisample render target. The default value is -1 (0xffffffff).
Public PropertyPresentationParametersGets the presentation parameters associated with this graphics device.
Public PropertyRasterizerStateGets or sets rasterizer state. The default value is RasterizerState.CullCounterClockwise.
Public PropertyReferenceStencilGets or sets a reference value for stencil testing. The default value is zero.
Public PropertySamplerStatesRetrieves a collection of SamplerState objects for the current GraphicsDevice.
Public PropertyScissorRectangleGets or sets the rectangle used for scissor testing. By default, the size matches the render target size.
Public PropertyTexturesReturns the collection of textures that have been assigned to the texture stages of the device.
Public PropertyVertexSamplerStatesGets the collection of vertex sampler states.
Public PropertyVertexTexturesGets the collection of vertex textures that support texture lookup in the vertex shader using the texldl statement. The vertex engine contains four texture sampler stages.
Public PropertyViewport Gets or sets a viewport identifying the portion of the render target to receive draw calls.
NameDescription
Public MethodClearOverloaded. Clears resource buffers.
Public MethodDisposeOverloaded. Immediately releases the unmanaged resources used by this object.
Public MethodDrawIndexedPrimitivesRenders the specified geometric primitive, based on indexing into an array of vertices.
Public MethodDrawInstancedPrimitivesDraws a series of instanced models.
Public MethodDrawPrimitivesRenders a sequence of non-indexed geometric primitives of the specified type from the current set of data input streams.
Public MethodDrawUserIndexedPrimitivesOverloaded. Renders geometric primitives.
Public MethodDrawUserPrimitivesOverloaded. Renders geometric primitives.
Public MethodEquals(Inherited from Object.)
Public MethodGetBackBufferDataOverloaded. Gets the contents of the back buffer.
Public MethodGetHashCode(Inherited from Object.)
Public MethodGetRenderTargetsGets a render target surface.
Public MethodGetType(Inherited from Object.)
Public MethodGetVertexBuffersGets the vertex buffers.
Public MethodPresentOverloaded. Presents the display with the contents of the next buffer in the sequence of back buffers owned by the GraphicsDevice.
Public MethodResetOverloaded. Resets the presentation parameters for the current GraphicsDevice.
Public MethodSetRenderTargetOverloaded. Sets a new color buffer for a GraphicsDevice.
Public MethodSetRenderTargets Sets an array of render targets.
Public MethodSetVertexBufferOverloaded. Sets or binds a vertex buffer to a device.
Public MethodSetVertexBuffersSets the vertex buffers.
Public MethodToString(Inherited from Object.)
NameDescription
Protected MethodFinalize Allows this object to attempt to free resources and perform other cleanup operations before garbage collection reclaims the object.
Protected MethodMemberwiseClone(Inherited from Object.)
NameDescription
Public EventDeviceLostOccurs when a GraphicsDevice is about to be lost (for example, immediately before a reset).
Public EventDeviceResetOccurs after a GraphicsDevice is reset, allowing an application to recreate all resources.
Public EventDeviceResettingOccurs when a GraphicsDevice is resetting, allowing the application to cancel the default handling of the reset.
Public EventDisposing Occurs when Dispose is called or when this object is finalized and collected by the garbage collector of the Microsoft .NET common language runtime.
Public EventResourceCreatedOccurs when a resource is created.
Public EventResourceDestroyedOccurs when a resource is destroyed.
 NameDescription
 SetSharingModeEnable/disable sharing a graphics device between Silverlight and XNA.
Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.