| GraphicsHelperDrawQuad Method (GraphicsDevice, Rectangle, Vector2F, Vector2F) |
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,
Rectangle rectangle,
Vector2F texCoordTopLeft,
Vector2F texCoordBottomRight
)
<ExtensionAttribute>
Public Shared Sub DrawQuad (
graphicsDevice As GraphicsDevice,
rectangle As Rectangle,
texCoordTopLeft As Vector2F,
texCoordBottomRight As Vector2F
)
public:
[ExtensionAttribute]
static void DrawQuad(
GraphicsDevice^ graphicsDevice,
Rectangle rectangle,
Vector2F texCoordTopLeft,
Vector2F texCoordBottomRight
)
[<ExtensionAttribute>]
static member DrawQuad :
graphicsDevice : GraphicsDevice *
rectangle : Rectangle *
texCoordTopLeft : Vector2F *
texCoordBottomRight : Vector2F -> unit
Parameters
- graphicsDevice
- Type: GraphicsDevice
The graphics device. - rectangle
- Type: Rectangle
The rectangle describing vertex positions of the quad. (This can be in pixels or in another
unit depending on the current vertex shader.)
- texCoordTopLeft
- Type: DigitalRune.Mathematics.AlgebraVector2F
The texture coordinates of the top left vertex of the quad.
- texCoordBottomRight
- Type: DigitalRune.Mathematics.AlgebraVector2F
The texture coordinates of the bottom right vertex of the quad.
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 See Also