|
SpriteBatchDraw(ShaderResourceView, RectangleF, RectangleF, Boolean, Color4) Method |
Draw method adds the specified texture to the destinationRectangle and with specified mask defined by the color parameter.
The method takes sourceRectangle as parameter. This can be used to have one texture with many images.
Draw method must be called after Begin and End methods are called.
Namespace: Ab3d.DirectXAssembly: Ab3d.DXEngine (in Ab3d.DXEngine.dll) Version: 7.0.8865.1045
Syntax public void Draw(
ShaderResourceView texture,
RectangleF sourceRectangle,
RectangleF destinationRectangle,
bool isDestinationRelative,
Color4 color
)
Parameters
- texture ShaderResourceView
- texture as ShaderResourceView
- sourceRectangle RectangleF
- RectangleF that defines the source rectangle in relative coordinates (in rage from 0 to 1)
- destinationRectangle RectangleF
- RectangleF that defines the destination rectangle
- isDestinationRelative Boolean
- when true, then the destination rectangle coordinates are relative (in range from 0 to 1); when false then the destination coordinate units are pixels
- color Color4
- mask as Color4
See Also