C# 클래스 Sharpex2D.Rendering.SpriteBatch

상속: IComponent
파일 보기 프로젝트 열기: ThuCommix/Sharpex2D 1 사용 예제들

공개 메소드들

메소드 설명
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