Export (0) Print
Expand All

GraphicsDevice Methods

The GraphicsDevice type exposes the following members.

  Name Description
Public method Clear(Color) Clears resource buffers.
Public method Clear(ClearOptions, Color, Single, Int32) Clears resource buffers.
Public method DrawIndexedPrimitives Renders the specified geometric primitive, based on indexing into an array of vertices.
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 GetRenderTargets Gets a render target surface.
Public method GetVertexBuffers Gets the vertex buffers.
Public method SetRenderTarget(RenderTarget2D) Sets a new render target for this GraphicsDevice.
Public method SetRenderTarget(RenderTargetCube, CubeMapFace) Sets a new render target for this GraphicsDevice.
Public method SetRenderTargets Sets an array of render targets.
Public method SetVertexBuffer(VertexBuffer) Sets or binds a vertex buffer to the device.
Public method SetVertexBuffer(VertexBuffer, Int32) Sets or binds a vertex buffer to the device.
Public method SetVertexBuffers Sets the vertex buffers.
Top

  Name Description
Public Extension Method GetPixelShader Gets the PixelShader that is associated with the specified GraphicsDevice. (Defined by GraphicsDeviceExtensions.)
Public Extension Method GetVertexShader Gets the VertexShader associated with the specified GraphicsDevice. (Defined by GraphicsDeviceExtensions.)
Public Extension Method SetPixelShader Associates the specified PixelShader with the specified GraphicsDevice. (Defined by GraphicsDeviceExtensions.)
Public Extension Method SetPixelShaderConstantFloat4<T>(Int32, T) Overloaded. Sets a constant register to a generic data type which is passed to the pixel shader on the graphics device. (Defined by GraphicsDeviceExtensions.)
Public Extension Method SetPixelShaderConstantFloat4<T>(Int32, Int32, T) Overloaded. Sets a constant register to a generic data type which is passed to the pixel shader on the graphics device. (Defined by GraphicsDeviceExtensions.)
Public Extension Method SetVertexShader Associates the specified VertexShader with the specified GraphicsDevice. (Defined by GraphicsDeviceExtensions.)
Public Extension Method SetVertexShaderConstantFloat4<T>(Int32, T) Overloaded. Sets a constant register to a generic data type which is passed to the vertex shader on the graphics device. (Defined by GraphicsDeviceExtensions.)
Public Extension Method SetVertexShaderConstantFloat4<T>(Int32, Int32, T) Overloaded. Sets a constant register to a generic data type which is passed to the vertex shader on the graphics device. (Defined by GraphicsDeviceExtensions.)
Top

Community Additions

ADD
Show:
© 2015 Microsoft