C# Class Engine.Objects.SpriteBatch

Afficher le fichier Open project: Radnen/sphere-sfml

Méthodes publiques

Méthode Description
Add ( Texture tex, FloatRect source, FloatRect dest, System.Color color ) : void

Adds a clipped or stretched version of the texture to the batcher, with the specified color.

Add ( Texture tex, IntRect source, FloatRect dest, System.Color color ) : void

Adds a clipped or stretched version of the texture to the batcher, with the specified color.

Add ( Texture tex, Vertex transform ) : void

Add a pre-transformed texture to the batcher.

Add ( Texture tex, float x, float y ) : void

Adds the texture to the batcher, drawn at the (x, y) location.

Add ( Texture tex, float x, float y, System.Color color ) : void

Adds the texture to the batcher, drawn at the (x, y) location with the specified color.

Add ( Texture tex, float x, float y, System.Color color, double r ) : void

Adds a rotated image to the batcher.

AddVerts ( Vertex verts, int count, PrimitiveType type = PrimitiveType.Quads ) : void

Adds verts to the batcher, must be a quad (for now).

Flush ( ) : void

Renders it all to screen, clearing out it's current buffer.

SetBlendMode ( BlendMode mode ) : void

Sets the batcher to use the specified blend mode.

SpriteBatch ( RenderTarget target ) : System

Private Methods

Méthode Description
Flush ( PrimitiveType type ) : void
Flush ( Texture replace ) : void
RotateX ( float x, float y, float cos, float sin ) : float
RotateY ( float x, float y, float cos, float sin ) : float

Method Details

Add() public méthode

Adds a clipped or stretched version of the texture to the batcher, with the specified color.
public Add ( Texture tex, FloatRect source, FloatRect dest, System.Color color ) : void
tex SFML.Graphics.Texture
source FloatRect
dest FloatRect
color System.Color
Résultat void

Add() public méthode

Adds a clipped or stretched version of the texture to the batcher, with the specified color.
public Add ( Texture tex, IntRect source, FloatRect dest, System.Color color ) : void
tex SFML.Graphics.Texture
source IntRect
dest FloatRect
color System.Color
Résultat void

Add() public méthode

Add a pre-transformed texture to the batcher.
public Add ( Texture tex, Vertex transform ) : void
tex SFML.Graphics.Texture
transform SFML.Graphics.Vertex
Résultat void

Add() public méthode

Adds the texture to the batcher, drawn at the (x, y) location.
public Add ( Texture tex, float x, float y ) : void
tex SFML.Graphics.Texture
x float
y float
Résultat void

Add() public méthode

Adds the texture to the batcher, drawn at the (x, y) location with the specified color.
public Add ( Texture tex, float x, float y, System.Color color ) : void
tex SFML.Graphics.Texture
x float
y float
color System.Color
Résultat void

Add() public méthode

Adds a rotated image to the batcher.
public Add ( Texture tex, float x, float y, System.Color color, double r ) : void
tex SFML.Graphics.Texture
x float
y float
color System.Color
r double
Résultat void

AddVerts() public méthode

Adds verts to the batcher, must be a quad (for now).
public AddVerts ( Vertex verts, int count, PrimitiveType type = PrimitiveType.Quads ) : void
verts SFML.Graphics.Vertex
count int
type PrimitiveType
Résultat void

Flush() public méthode

Renders it all to screen, clearing out it's current buffer.
public Flush ( ) : void
Résultat void

SetBlendMode() public méthode

Sets the batcher to use the specified blend mode.
public SetBlendMode ( BlendMode mode ) : void
mode BlendMode
Résultat void

SpriteBatch() public méthode

public SpriteBatch ( RenderTarget target ) : System
target RenderTarget
Résultat System