C# Class Terraria.Graphics.TileBatch

Show file Open project: EmuDevs/EDTerraria Class Usage Examples

Public Methods

Method Description
Begin ( ) : void
Dispose ( ) : void
Draw ( Microsoft.Xna.Framework.Graphics.Texture2D texture, Rectangle destinationRectangle, Rectangle sourceRectangle, VertexColors colors ) : void
Draw ( Microsoft.Xna.Framework.Graphics.Texture2D texture, Vector2 position, Rectangle sourceRectangle, VertexColors colors, Vector2 origin, float scale, SpriteEffects effects ) : void
Draw ( Microsoft.Xna.Framework.Graphics.Texture2D texture, Vector2 position, VertexColors colors ) : void
Draw ( Microsoft.Xna.Framework.Graphics.Texture2D texture, Vector2 position, VertexColors colors, Vector2 scale ) : void
Draw ( Microsoft.Xna.Framework.Graphics.Texture2D texture, Vector4 destination, VertexColors colors ) : void
End ( ) : void
TileBatch ( GraphicsDevice g ) : Microsoft.Xna.Framework

Private Methods

Method Description
Allocate ( ) : void
CreateIndexData ( ) : short[]
Flush ( ) : void
FlushRenderState ( ) : void
InternalDraw ( Microsoft.Xna.Framework.Graphics.Texture2D texture, Vector4 &destination, bool scaleDestination, Rectangle &sourceRectangle, VertexColors &colors, Vector2 &origin, SpriteEffects effects ) : void
RenderBatch ( Microsoft.Xna.Framework.Graphics.Texture2D texture, SpriteData sprites, int offset, int count ) : void
TileBatch ( ) : Microsoft.Xna.Framework

Method Details

Begin() public method

public Begin ( ) : void
return void

Dispose() public method

public Dispose ( ) : void
return void

Draw() public method

public Draw ( Microsoft.Xna.Framework.Graphics.Texture2D texture, Rectangle destinationRectangle, Rectangle sourceRectangle, VertexColors colors ) : void
texture Microsoft.Xna.Framework.Graphics.Texture2D
destinationRectangle Microsoft.Xna.Framework.Rectangle
sourceRectangle Microsoft.Xna.Framework.Rectangle
colors VertexColors
return void

Draw() public method

public Draw ( Microsoft.Xna.Framework.Graphics.Texture2D texture, Vector2 position, Rectangle sourceRectangle, VertexColors colors, Vector2 origin, float scale, SpriteEffects effects ) : void
texture Microsoft.Xna.Framework.Graphics.Texture2D
position Vector2
sourceRectangle Microsoft.Xna.Framework.Rectangle
colors VertexColors
origin Vector2
scale float
effects SpriteEffects
return void

Draw() public method

public Draw ( Microsoft.Xna.Framework.Graphics.Texture2D texture, Vector2 position, VertexColors colors ) : void
texture Microsoft.Xna.Framework.Graphics.Texture2D
position Vector2
colors VertexColors
return void

Draw() public method

public Draw ( Microsoft.Xna.Framework.Graphics.Texture2D texture, Vector2 position, VertexColors colors, Vector2 scale ) : void
texture Microsoft.Xna.Framework.Graphics.Texture2D
position Vector2
colors VertexColors
scale Vector2
return void

Draw() public method

public Draw ( Microsoft.Xna.Framework.Graphics.Texture2D texture, Vector4 destination, VertexColors colors ) : void
texture Microsoft.Xna.Framework.Graphics.Texture2D
destination Vector4
colors VertexColors
return void

End() public method

public End ( ) : void
return void

TileBatch() public method

public TileBatch ( GraphicsDevice g ) : Microsoft.Xna.Framework
g GraphicsDevice
return Microsoft.Xna.Framework