Shift
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Pages
Shift.Graphics.SpriteBatch Class Reference

Helper class for drawing sprites in one or more optimized batches. More...

Public Member Functions

 SpriteBatch (int capacity=1000)
 
void Begin ()
 Begins a new sprite batch. More...
 
void Draw (Texture texture, Vector2 position)
 
void End ()
 Ends batching and flushes batches to GPU. More...
 

Detailed Description

Helper class for drawing sprites in one or more optimized batches.

Definition at line 16 of file SpriteBatch.cs.

Constructor & Destructor Documentation

Shift.Graphics.SpriteBatch.SpriteBatch ( int  capacity = 1000)
inline

Definition at line 41 of file SpriteBatch.cs.

Member Function Documentation

void Shift.Graphics.SpriteBatch.Begin ( )
inline

Begins a new sprite batch.

Definition at line 56 of file SpriteBatch.cs.

void Shift.Graphics.SpriteBatch.Draw ( Texture  texture,
Vector2  position 
)
inline

Definition at line 66 of file SpriteBatch.cs.

void Shift.Graphics.SpriteBatch.End ( )
inline

Ends batching and flushes batches to GPU.

Definition at line 89 of file SpriteBatch.cs.


The documentation for this class was generated from the following file: