Show / Hide Table of Contents

Class DrawCallTexture

Draws an image ot the active SharedSpriteBatch.

Inheritance
object
DrawCallTexture
Implements
IDrawCall
Inherited Members
object.GetType()
object.MemberwiseClone()
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
Namespace: SadConsole.DrawCalls
Assembly: SadConsole.Host.MonoGame.dll
Syntax
public class DrawCallTexture : IDrawCall

Constructors

DrawCallTexture(Texture2D, Vector2, Color?, Effect)

Creates a new instance of this draw call.

Declaration
public DrawCallTexture(Texture2D texture, Vector2 position, Color? tint = null, Effect effect = 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.

Effect effect

A shader to apply to the texture being drawn.

Exceptions
Type Condition
NullReferenceException

Thrown when texture is null.

Fields

Position

Where on the SharedSpriteBatch to draw the texture.

Declaration
public Vector2 Position
Field Value
Type Description
Vector2

ShaderEffect

The shader to use when drawing the texture.

Declaration
public Effect ShaderEffect
Field Value
Type Description
Effect

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()

Implements

IDrawCall

Extension Methods

ExtensionsSystem.GetDebuggerDisplayValue(object)
In this article

Back to top

Back to top Generated by DocFX