Class DrawCallTexture
Draws an image ot the active SharedSpriteBatch.
Implements
Inherited Members
Namespace: SadConsole.DrawCalls
Assembly: SadConsole.Host.MonoGame.dll
Syntax
public class DrawCallTexture : IDrawCall
Constructors
DrawCallTexture(Texture2D, Vector2, Color?)
Creates a new instance of this draw call.
Declaration
public DrawCallTexture(Texture2D texture, Vector2 position, Color? tint = null)
Parameters
Type | Name | Description |
---|---|---|
Texture2D | texture | The image to draw. |
Vector2 | position | The position on the SharedSpriteBatch to draw the image. |
Color? | tint | A color tint to apply to the drawn image. |
Exceptions
Type | Condition |
---|---|
NullReferenceException | Thrown when |
Fields
Position
Where on the SharedSpriteBatch to draw the texture.
Declaration
public Vector2 Position
Field Value
Type | Description |
---|---|
Vector2 |
Texture
The image to draw.
Declaration
public Texture2D Texture
Field Value
Type | Description |
---|---|
Texture2D |
Tint
A color tint to apply when drawn.
Declaration
public Color Tint
Field Value
Type | Description |
---|---|
Color |
Methods
Draw()
Draws an object.
Declaration
public void Draw()