C# Class Sharpex2D.Rendering.SpriteBatch

Inheritance: IComponent
Mostrar archivo Open project: ThuCommix/Sharpex2D Class Usage Examples

Public Methods

Method Description
Begin ( ) : void

Begins the draw operation.

DrawString ( string text, Font font, Rectangle rectangle, Color color ) : void

Draws a string.

DrawString ( string text, Font font, Vector2 position, Color color ) : void

Draws a string.

DrawTexture ( SpriteSheet spriteSheet, Rectangle rectangle, Color color, float opacity = 1f ) : void

Draws a Texture.

DrawTexture ( SpriteSheet spriteSheet, Rectangle rectangle, float opacity = 1f ) : void

Draws a Texture.

DrawTexture ( SpriteSheet spriteSheet, Vector2 position, Color color, float opacity = 1f ) : void

Draws a Texture.

DrawTexture ( SpriteSheet spriteSheet, Vector2 position, float opacity = 1f ) : void

Draws a Texture.

DrawTexture ( Texture2D texture, Rectangle rectangle, Color color, float opacity = 1f ) : void

Draws a Texture.

DrawTexture ( Texture2D texture, Rectangle source, Rectangle destination, Color color, float opacity = 1f ) : void

Draws a Texture.

DrawTexture ( Texture2D texture, Rectangle source, Rectangle destination, float opacity = 1f ) : void

Draws a Texture.

DrawTexture ( Texture2D texture, Rectangle rectangle, float opacity = 1f ) : void

Draws a Texture.

DrawTexture ( Texture2D texture, Vector2 position, Color color, float opacity = 1f ) : void

Draws a Texture.

DrawTexture ( Texture2D texture, Vector2 position, float opacity = 1f ) : void

Draws a Texture.

End ( ) : void

Ends the draw operation.

MeasureString ( string text, Font font ) : Vector2

Measures the string.

ResetTransform ( ) : void

Resets the Transform.

SetTransform ( Matrix2x3 matrix ) : void

Sets the Transform.

SpriteBatch ( GraphicsManager graphicsManager ) : System

Initializes a new SpriteBatch class.

Method Details

Begin() public method

Begins the draw operation.
public Begin ( ) : void
return void

DrawString() public method

Draws a string.
public DrawString ( string text, Font font, Rectangle rectangle, Color color ) : void
text string The Text.
font Font The Font.
rectangle Sharpex2D.Math.Rectangle The Rectangle.
color Color The Color.
return void

DrawString() public method

Draws a string.
public DrawString ( string text, Font font, Vector2 position, Color color ) : void
text string The Text.
font Font The Font.
position Vector2 The Position.
color Color The Color.
return void

DrawTexture() public method

Draws a Texture.
public DrawTexture ( SpriteSheet spriteSheet, Rectangle rectangle, Color color, float opacity = 1f ) : void
spriteSheet SpriteSheet The SpriteSheet.
rectangle Sharpex2D.Math.Rectangle The Rectangle.
color Color The Color.
opacity float The Opacity.
return void

DrawTexture() public method

Draws a Texture.
public DrawTexture ( SpriteSheet spriteSheet, Rectangle rectangle, float opacity = 1f ) : void
spriteSheet SpriteSheet The SpriteSheet.
rectangle Sharpex2D.Math.Rectangle The Rectangle.
opacity float The Opacity.
return void

DrawTexture() public method

Draws a Texture.
public DrawTexture ( SpriteSheet spriteSheet, Vector2 position, Color color, float opacity = 1f ) : void
spriteSheet SpriteSheet The SpriteSheet.
position Vector2 The Position.
color Color The Color.
opacity float The Opacity.
return void

DrawTexture() public method

Draws a Texture.
public DrawTexture ( SpriteSheet spriteSheet, Vector2 position, float opacity = 1f ) : void
spriteSheet SpriteSheet The SpriteSheet.
position Vector2 The Position.
opacity float The Opacity.
return void

DrawTexture() public method

Draws a Texture.
public DrawTexture ( Texture2D texture, Rectangle rectangle, Color color, float opacity = 1f ) : void
texture Texture2D The Texture.
rectangle Sharpex2D.Math.Rectangle The Rectangle.
color Color The Color.
opacity float The Opacity.
return void

DrawTexture() public method

Draws a Texture.
public DrawTexture ( Texture2D texture, Rectangle source, Rectangle destination, Color color, float opacity = 1f ) : void
texture Texture2D The Texture.
source Sharpex2D.Math.Rectangle The SourceRectangle.
destination Sharpex2D.Math.Rectangle The DestinationRectangle.
color Color The Color.
opacity float The Opacity.
return void

DrawTexture() public method

Draws a Texture.
public DrawTexture ( Texture2D texture, Rectangle source, Rectangle destination, float opacity = 1f ) : void
texture Texture2D The Texture.
source Sharpex2D.Math.Rectangle The SourceRectangle.
destination Sharpex2D.Math.Rectangle The DestinationRectangle.
opacity float The Opacity.
return void

DrawTexture() public method

Draws a Texture.
public DrawTexture ( Texture2D texture, Rectangle rectangle, float opacity = 1f ) : void
texture Texture2D The Texture.
rectangle Sharpex2D.Math.Rectangle The Rectangle.
opacity float The Opacity.
return void

DrawTexture() public method

Draws a Texture.
public DrawTexture ( Texture2D texture, Vector2 position, Color color, float opacity = 1f ) : void
texture Texture2D The Texture.
position Vector2 The Position.
color Color The Color.
opacity float The Opacity.
return void

DrawTexture() public method

Draws a Texture.
public DrawTexture ( Texture2D texture, Vector2 position, float opacity = 1f ) : void
texture Texture2D The Texture.
position Vector2 The Position.
opacity float The Opacity.
return void

End() public method

Ends the draw operation.
public End ( ) : void
return void

MeasureString() public method

Measures the string.
public MeasureString ( string text, Font font ) : Vector2
text string The String.
font Font The Font.
return Vector2

ResetTransform() public method

Resets the Transform.
public ResetTransform ( ) : void
return void

SetTransform() public method

Sets the Transform.
public SetTransform ( Matrix2x3 matrix ) : void
matrix Sharpex2D.Math.Matrix2x3 The Matrix.
return void

SpriteBatch() public method

Initializes a new SpriteBatch class.
public SpriteBatch ( GraphicsManager graphicsManager ) : System
graphicsManager GraphicsManager The GraphicsManager.
return System