C# Класс Sharpex2D.Rendering.SpriteBatch

Наследование: IComponent
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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.

Описание методов

Begin() публичный Метод

Begins the draw operation.
public Begin ( ) : void
Результат void

DrawString() публичный Метод

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.
Результат void

DrawString() публичный Метод

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.
Результат void

DrawTexture() публичный Метод

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.
Результат void

DrawTexture() публичный Метод

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.
Результат void

DrawTexture() публичный Метод

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.
Результат void

DrawTexture() публичный Метод

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.
Результат void

DrawTexture() публичный Метод

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.
Результат void

DrawTexture() публичный Метод

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.
Результат void

DrawTexture() публичный Метод

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.
Результат void

DrawTexture() публичный Метод

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.
Результат void

DrawTexture() публичный Метод

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.
Результат void

DrawTexture() публичный Метод

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.
Результат void

End() публичный Метод

Ends the draw operation.
public End ( ) : void
Результат void

MeasureString() публичный Метод

Measures the string.
public MeasureString ( string text, Font font ) : Vector2
text string The String.
font Font The Font.
Результат Vector2

ResetTransform() публичный Метод

Resets the Transform.
public ResetTransform ( ) : void
Результат void

SetTransform() публичный Метод

Sets the Transform.
public SetTransform ( Matrix2x3 matrix ) : void
matrix Sharpex2D.Math.Matrix2x3 The Matrix.
Результат void

SpriteBatch() публичный Метод

Initializes a new SpriteBatch class.
public SpriteBatch ( GraphicsManager graphicsManager ) : System
graphicsManager GraphicsManager The GraphicsManager.
Результат System