| GraphicsHelperDrawQuad Method (GraphicsDevice, VertexPositionTexture, VertexPositionTexture) |
Draws a screen-aligned quad.
Namespace: DigitalRune.GraphicsAssembly: DigitalRune.Graphics (in DigitalRune.Graphics.dll) Version: 1.2.0.0 (1.2.1.14562)
Syntax public static void DrawQuad(
this GraphicsDevice graphicsDevice,
VertexPositionTexture topLeft,
VertexPositionTexture bottomRight
)
<ExtensionAttribute>
Public Shared Sub DrawQuad (
graphicsDevice As GraphicsDevice,
topLeft As VertexPositionTexture,
bottomRight As VertexPositionTexture
)
public:
[ExtensionAttribute]
static void DrawQuad(
GraphicsDevice^ graphicsDevice,
VertexPositionTexture topLeft,
VertexPositionTexture bottomRight
)
[<ExtensionAttribute>]
static member DrawQuad :
graphicsDevice : GraphicsDevice *
topLeft : VertexPositionTexture *
bottomRight : VertexPositionTexture -> unit
Parameters
- graphicsDevice
- Type: GraphicsDevice
The graphics device. - topLeft
- Type: VertexPositionTexture
The top left vertex. - bottomRight
- Type: VertexPositionTexture
The bottom right vertex.
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 See Also