C# Class Terraria.DataStructures.DrawData

Show file Open project: EmuDevs/EDTerraria Class Usage Examples

Public Properties

Property Type Description
color System.Color
destinationRectangle Rectangle
effect SpriteEffects
ignorePlayerRotation bool
nullRectangle Rectangle?
origin System.Vector2
position System.Vector2
rotation float
scale System.Vector2
shader int
sourceRect Rectangle?
texture Microsoft.Xna.Framework.Graphics.Texture2D
useDestinationRectangle bool

Public Methods

Method Description
Draw ( SpriteBatch sb ) : void
DrawData ( Microsoft.Xna.Framework.Graphics.Texture2D tex, Rectangle desRectangle, System.Color c ) : Microsoft.Xna.Framework
DrawData ( Microsoft.Xna.Framework.Graphics.Texture2D tex, Rectangle desRectangle, Rectangle sRect, System.Color c ) : Microsoft.Xna.Framework
DrawData ( Microsoft.Xna.Framework.Graphics.Texture2D tex, Rectangle desRectangle, Rectangle sRect, System.Color c, float rotat, System.Vector2 _origin, SpriteEffects _effect, int inactiveLayerDepth ) : Microsoft.Xna.Framework
DrawData ( Microsoft.Xna.Framework.Graphics.Texture2D tex, System.Vector2 pos, System.Color c ) : Microsoft.Xna.Framework
DrawData ( Microsoft.Xna.Framework.Graphics.Texture2D tex, System.Vector2 pos, Rectangle sRect, System.Color c ) : Microsoft.Xna.Framework
DrawData ( Microsoft.Xna.Framework.Graphics.Texture2D tex, System.Vector2 pos, Rectangle sRect, System.Color c, float rotat, System.Vector2 _origin, System.Vector2 _scale, SpriteEffects spriteEffect, int inactiveLayerDepth ) : Microsoft.Xna.Framework
DrawData ( Microsoft.Xna.Framework.Graphics.Texture2D tex, System.Vector2 pos, Rectangle sRect, System.Color c, float rotat, System.Vector2 _origin, float _scale, SpriteEffects eff, int inactiveLayerDepth ) : Microsoft.Xna.Framework

Method Details

Draw() public method

public Draw ( SpriteBatch sb ) : void
sb Microsoft.Xna.Framework.Graphics.SpriteBatch
return void

DrawData() public method

public DrawData ( Microsoft.Xna.Framework.Graphics.Texture2D tex, Rectangle desRectangle, System.Color c ) : Microsoft.Xna.Framework
tex Microsoft.Xna.Framework.Graphics.Texture2D
desRectangle Rectangle
c System.Color
return Microsoft.Xna.Framework

DrawData() public method

public DrawData ( Microsoft.Xna.Framework.Graphics.Texture2D tex, Rectangle desRectangle, Rectangle sRect, System.Color c ) : Microsoft.Xna.Framework
tex Microsoft.Xna.Framework.Graphics.Texture2D
desRectangle Rectangle
sRect Rectangle
c System.Color
return Microsoft.Xna.Framework

DrawData() public method

public DrawData ( Microsoft.Xna.Framework.Graphics.Texture2D tex, Rectangle desRectangle, Rectangle sRect, System.Color c, float rotat, System.Vector2 _origin, SpriteEffects _effect, int inactiveLayerDepth ) : Microsoft.Xna.Framework
tex Microsoft.Xna.Framework.Graphics.Texture2D
desRectangle Rectangle
sRect Rectangle
c System.Color
rotat float
_origin System.Vector2
_effect SpriteEffects
inactiveLayerDepth int
return Microsoft.Xna.Framework

DrawData() public method

public DrawData ( Microsoft.Xna.Framework.Graphics.Texture2D tex, System.Vector2 pos, System.Color c ) : Microsoft.Xna.Framework
tex Microsoft.Xna.Framework.Graphics.Texture2D
pos System.Vector2
c System.Color
return Microsoft.Xna.Framework

DrawData() public method

public DrawData ( Microsoft.Xna.Framework.Graphics.Texture2D tex, System.Vector2 pos, Rectangle sRect, System.Color c ) : Microsoft.Xna.Framework
tex Microsoft.Xna.Framework.Graphics.Texture2D
pos System.Vector2
sRect Rectangle
c System.Color
return Microsoft.Xna.Framework

DrawData() public method

public DrawData ( Microsoft.Xna.Framework.Graphics.Texture2D tex, System.Vector2 pos, Rectangle sRect, System.Color c, float rotat, System.Vector2 _origin, System.Vector2 _scale, SpriteEffects spriteEffect, int inactiveLayerDepth ) : Microsoft.Xna.Framework
tex Microsoft.Xna.Framework.Graphics.Texture2D
pos System.Vector2
sRect Rectangle
c System.Color
rotat float
_origin System.Vector2
_scale System.Vector2
spriteEffect SpriteEffects
inactiveLayerDepth int
return Microsoft.Xna.Framework

DrawData() public method

public DrawData ( Microsoft.Xna.Framework.Graphics.Texture2D tex, System.Vector2 pos, Rectangle sRect, System.Color c, float rotat, System.Vector2 _origin, float _scale, SpriteEffects eff, int inactiveLayerDepth ) : Microsoft.Xna.Framework
tex Microsoft.Xna.Framework.Graphics.Texture2D
pos System.Vector2
sRect Rectangle
c System.Color
rotat float
_origin System.Vector2
_scale float
eff SpriteEffects
inactiveLayerDepth int
return Microsoft.Xna.Framework

Property Details

color public property

public Color,System color
return System.Color

destinationRectangle public property

public Rectangle destinationRectangle
return Rectangle

effect public property

public SpriteEffects effect
return SpriteEffects

ignorePlayerRotation public property

public bool ignorePlayerRotation
return bool

nullRectangle public static property

public static Rectangle? nullRectangle
return Rectangle?

origin public property

public Vector2,System origin
return System.Vector2

position public property

public Vector2,System position
return System.Vector2

rotation public property

public float rotation
return float

scale public property

public Vector2,System scale
return System.Vector2

shader public property

public int shader
return int

sourceRect public property

public Rectangle? sourceRect
return Rectangle?

texture public property

public Texture2D,Microsoft.Xna.Framework.Graphics texture
return Microsoft.Xna.Framework.Graphics.Texture2D

useDestinationRectangle public property

public bool useDestinationRectangle
return bool