| GraphicsHelperDrawFullScreenQuad Method |
Draws a full-screen quad.
Namespace: DigitalRune.GraphicsAssembly: DigitalRune.Graphics (in DigitalRune.Graphics.dll) Version: 1.2.0.0 (1.2.1.14562)
Syntax public static void DrawFullScreenQuad(
this GraphicsDevice graphicsDevice
)
<ExtensionAttribute>
Public Shared Sub DrawFullScreenQuad (
graphicsDevice As GraphicsDevice
)
public:
[ExtensionAttribute]
static void DrawFullScreenQuad(
GraphicsDevice^ graphicsDevice
)
[<ExtensionAttribute>]
static member DrawFullScreenQuad :
graphicsDevice : GraphicsDevice -> unit
Parameters
- graphicsDevice
- Type: GraphicsDevice
The graphics device.
Usage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type
GraphicsDevice. When you use instance method syntax to call this method, omit the first parameter. For more information, see
Extension Methods (Visual Basic) or
Extension Methods (C# Programming Guide).
Exceptions Remarks
The quad will fill the current viewport. The vertex positions are in pixels. (The vertex
shader must work like VSScreenSpaceDraw() in "PostProcessing.fxh".)
The quad vertices use the vertex type VertexPositionTexture.
The upper left corner of the quad uses the texture coordinate (0, 0), the lower right corner
of the quad uses the texture coordinate (0, 1).
See Also