GraphicsManagerDrawTexture Method (Texture2D, Rectangle, Vector2, Single, Vector2, NullableColor) |
Draw a plain texture.
Namespace:
GeonBit.Core.Graphics
Assembly:
GeonBit (in GeonBit.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax public static void DrawTexture(
Texture2D texture,
Rectangle sourceRect,
Vector2 position,
float scale,
Vector2 origin,
Nullable<Color> color = null
)
Parameters
- texture
- Type: Texture2D
Texture to draw. - sourceRect
- Type: Rectangle
Source rectangle in texture (also affect drawing size). - position
- Type: Vector2
Dest position in viewport. - scale
- Type: SystemSingle
Will scale the rendered texture. - origin
- Type: Vector2
Origin for rotation, scaling, etc. - color (Optional)
- Type: SystemNullableColor
Optional color.
See Also