C# Class Ypsilon.Core.Graphics.SpriteBatchExtended

Show file Open project: ZaneDubya/YCPU Class Usage Examples

Public Methods

Method Description
Begin ( Microsoft.Xna.Framework.Color clear = null ) : void
Dispose ( ) : void
DrawSprite ( EffectState effect, Microsoft.Xna.Framework.Graphics.Texture2D texture, Microsoft.Xna.Framework.Vector3 position, Vector2 area, Microsoft.Xna.Framework.Color hue ) : bool
DrawSprite ( EffectState effect, Microsoft.Xna.Framework.Graphics.Texture2D texture, Microsoft.Xna.Framework.Vector3 position, Vector2 area, Vector4 uv, Microsoft.Xna.Framework.Color hue ) : bool
DrawSprite ( EffectState effect, Microsoft.Xna.Framework.Graphics.Texture2D texture, Microsoft.Xna.Framework.Vector3 position, Vector2 area, Vector4 uv, Microsoft.Xna.Framework.Color hue, Vector4 data ) : bool
End ( Matrix projection, Matrix view, Matrix world ) : void
Initialize ( ) : void
LoadEffectContent ( string contentName ) : Effect
LoadTextureContent ( string contentName ) : Microsoft.Xna.Framework.Graphics.Texture2D
NewTexture ( int width, int height ) : Microsoft.Xna.Framework.Graphics.Texture2D
SetScissorRect ( Rectangle r ) : void
SpriteBatchExtended ( Microsoft.Xna.Framework.Game game ) : System.Collections.Generic

Private Methods

Method Description
CreateIndexBuffer ( int primitiveCount ) : short[]
EndClearAllVertexLists ( ) : void
EndUnderlying ( Matrix projection, Matrix view, Matrix world, bool drawTransparent ) : void
GetVLForThisEffectAndTexture ( EffectState effect, Microsoft.Xna.Framework.Graphics.Texture2D texture ) : List

Method Details

Begin() public method

public Begin ( Microsoft.Xna.Framework.Color clear = null ) : void
clear Microsoft.Xna.Framework.Color
return void

Dispose() public method

public Dispose ( ) : void
return void

DrawSprite() public method

public DrawSprite ( EffectState effect, Microsoft.Xna.Framework.Graphics.Texture2D texture, Microsoft.Xna.Framework.Vector3 position, Vector2 area, Microsoft.Xna.Framework.Color hue ) : bool
effect EffectState
texture Microsoft.Xna.Framework.Graphics.Texture2D
position Microsoft.Xna.Framework.Vector3
area Microsoft.Xna.Framework.Vector2
hue Microsoft.Xna.Framework.Color
return bool

DrawSprite() public method

public DrawSprite ( EffectState effect, Microsoft.Xna.Framework.Graphics.Texture2D texture, Microsoft.Xna.Framework.Vector3 position, Vector2 area, Vector4 uv, Microsoft.Xna.Framework.Color hue ) : bool
effect EffectState
texture Microsoft.Xna.Framework.Graphics.Texture2D
position Microsoft.Xna.Framework.Vector3
area Microsoft.Xna.Framework.Vector2
uv Microsoft.Xna.Framework.Vector4
hue Microsoft.Xna.Framework.Color
return bool

DrawSprite() public method

public DrawSprite ( EffectState effect, Microsoft.Xna.Framework.Graphics.Texture2D texture, Microsoft.Xna.Framework.Vector3 position, Vector2 area, Vector4 uv, Microsoft.Xna.Framework.Color hue, Vector4 data ) : bool
effect EffectState
texture Microsoft.Xna.Framework.Graphics.Texture2D
position Microsoft.Xna.Framework.Vector3
area Microsoft.Xna.Framework.Vector2
uv Microsoft.Xna.Framework.Vector4
hue Microsoft.Xna.Framework.Color
data Microsoft.Xna.Framework.Vector4
return bool

End() public method

public End ( Matrix projection, Matrix view, Matrix world ) : void
projection Microsoft.Xna.Framework.Matrix
view Microsoft.Xna.Framework.Matrix
world Microsoft.Xna.Framework.Matrix
return void

Initialize() public method

public Initialize ( ) : void
return void

LoadEffectContent() public method

public LoadEffectContent ( string contentName ) : Effect
contentName string
return Microsoft.Xna.Framework.Graphics.Effect

LoadTextureContent() public method

public LoadTextureContent ( string contentName ) : Microsoft.Xna.Framework.Graphics.Texture2D
contentName string
return Microsoft.Xna.Framework.Graphics.Texture2D

NewTexture() public method

public NewTexture ( int width, int height ) : Microsoft.Xna.Framework.Graphics.Texture2D
width int
height int
return Microsoft.Xna.Framework.Graphics.Texture2D

SetScissorRect() public method

public SetScissorRect ( Rectangle r ) : void
r Microsoft.Xna.Framework.Rectangle
return void

SpriteBatchExtended() public method

public SpriteBatchExtended ( Microsoft.Xna.Framework.Game game ) : System.Collections.Generic
game Microsoft.Xna.Framework.Game
return System.Collections.Generic