DrawCallTexture Class
Definition
Section titled “Definition”Draws an image ot the active SharedSpriteBatch.
public class DrawCallTexture : IDrawCallInheritance object
Implements IDrawCall
Constructors
Section titled “Constructors”DrawCallTexture(Texture2D, Vector2, Color?, Effect)
Section titled “DrawCallTexture(Texture2D, Vector2, Color?, Effect)”Creates a new instance of this draw call.
public DrawCallTexture(Texture2D texture, Vector2 position, Color? tint = null, Effect effect = null)Parameters
Section titled “Parameters”texture Microsoft.Xna.Framework.Graphics.Texture2D
The image to draw.
position Microsoft.Xna.Framework.Vector2
The position on the SharedSpriteBatch to draw the image.
tint System.NullableMicrosoft.Xna.Framework.Color
A color tint to apply to the drawn image.
effect Microsoft.Xna.Framework.Graphics.Effect
A shader to apply to the texture being drawn.
Exceptions
Section titled “Exceptions”NullReferenceException
Thrown when texture is null.
Fields
Section titled “Fields”Texture
Section titled “Texture”The image to draw.
public Texture2D TextureShaderEffect
Section titled “ShaderEffect”The shader to use when drawing the texture.
public Effect ShaderEffectPosition
Section titled “Position”Where on the SharedSpriteBatch to draw the texture.
public Vector2 PositionA color tint to apply when drawn.
public Color TintMethods
Section titled “Methods”Draw()
Section titled “Draw()”Draws an object.
public void Draw()