C# Class RenderingLibrary.Graphics.Sprite

Inheritance: IPositionedSizedObject, IRenderable, IVisible
Exibir arquivo Open project: vchelaru/FlatRedBall Class Usage Examples

Public Properties

Property Type Description
Color Color
SourceRectangle Rectangle?

Private Properties

Property Type Description
IRenderable void
IRenderable void
IRenderableIpso void
RenderTiledSprite void

Public Methods

Method Description
AnimationActivity ( double currentTime ) : void
Render ( SystemManagers managers, SpriteRenderer spriteRenderer, IRenderableIpso ipso, Microsoft.Xna.Framework.Graphics.Texture2D texture ) : void
Render ( SystemManagers managers, SpriteRenderer spriteRenderer, IRenderableIpso ipso, Microsoft.Xna.Framework.Graphics.Texture2D texture, Color color, Rectangle sourceRectangle = null, bool flipHorizontal = false, bool flipVertical = false, float rotationInDegrees, bool treat0AsFullDimensions = false, object objectCausingRenering = null ) : void
Sprite ( Microsoft.Xna.Framework.Graphics.Texture2D texture ) : System
ToString ( ) : string

Private Methods

Method Description
IRenderable ( ) : void
IRenderable ( SpriteRenderer spriteRenderer, SystemManagers managers ) : void
IRenderableIpso ( IRenderableIpso parent ) : void
RenderTiledSprite ( SpriteRenderer spriteRenderer, SystemManagers managers ) : void

Method Details

AnimationActivity() public method

public AnimationActivity ( double currentTime ) : void
currentTime double
return void

Render() public static method

public static Render ( SystemManagers managers, SpriteRenderer spriteRenderer, IRenderableIpso ipso, Microsoft.Xna.Framework.Graphics.Texture2D texture ) : void
managers SystemManagers
spriteRenderer SpriteRenderer
ipso IRenderableIpso
texture Microsoft.Xna.Framework.Graphics.Texture2D
return void

Render() public static method

public static Render ( SystemManagers managers, SpriteRenderer spriteRenderer, IRenderableIpso ipso, Microsoft.Xna.Framework.Graphics.Texture2D texture, Color color, Rectangle sourceRectangle = null, bool flipHorizontal = false, bool flipVertical = false, float rotationInDegrees, bool treat0AsFullDimensions = false, object objectCausingRenering = null ) : void
managers SystemManagers
spriteRenderer SpriteRenderer
ipso IRenderableIpso
texture Microsoft.Xna.Framework.Graphics.Texture2D
color Color
sourceRectangle Microsoft.Xna.Framework.Rectangle
flipHorizontal bool
flipVertical bool
rotationInDegrees float
treat0AsFullDimensions bool
objectCausingRenering object
return void

Sprite() public method

public Sprite ( Microsoft.Xna.Framework.Graphics.Texture2D texture ) : System
texture Microsoft.Xna.Framework.Graphics.Texture2D
return System

ToString() public method

public ToString ( ) : string
return string

Property Details

Color public_oe property

public Color Color
return Color

SourceRectangle public_oe property

public Rectangle? SourceRectangle
return Rectangle?