C# 클래스 Engine.Objects.SpriteBatch

파일 보기 프로젝트 열기: Radnen/sphere-sfml

공개 메소드들

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

비공개 메소드들

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

메소드 상세

Add() 공개 메소드

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
리턴 void

Add() 공개 메소드

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
리턴 void

Add() 공개 메소드

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

Add() 공개 메소드

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
리턴 void

Add() 공개 메소드

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
리턴 void

Add() 공개 메소드

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
리턴 void

AddVerts() 공개 메소드

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
리턴 void

Flush() 공개 메소드

Renders it all to screen, clearing out it's current buffer.
public Flush ( ) : void
리턴 void

SetBlendMode() 공개 메소드

Sets the batcher to use the specified blend mode.
public SetBlendMode ( BlendMode mode ) : void
mode BlendMode
리턴 void

SpriteBatch() 공개 메소드

public SpriteBatch ( RenderTarget target ) : System
target RenderTarget
리턴 System