Lums
Public Member Functions | Protected Member Functions | List of all members
lm::SpriteBatch Class Reference

A class representing a dynamic batch of bidimensional graphical elements. More...

#include <SpriteBatch.hpp>

Inheritance diagram for lm::SpriteBatch:
lm::StaticSpriteBatch

Public Member Functions

void begin ()
 
void end ()
 
- Public Member Functions inherited from lm::StaticSpriteBatch
 StaticSpriteBatch ()
 
LUMS_EXPORTED void draw (const Texture &texture, int atlas=0, Vector2f pos={0.f, 0.f}, Vector2f scale={1.f, 1.f}, Vector4f color={1.f, 1.f, 1.f, 1.f}, Vector2b flip={false, false})
 
LUMS_EXPORTED void draw (const Sprite &sprite)
 
LUMS_EXPORTED void draw (const Font &font, const char *text, Vector2f pos={0.f, 0.f}, Vector4f color={1.f, 1.f, 1.f, 1.f})
 
LUMS_EXPORTED void setTexture (const Texture *texture)
 
LUMS_EXPORTED void send ()
 
LUMS_EXPORTED void flush ()
 
LUMS_EXPORTED void render ()
 
 ~StaticSpriteBatch ()
 

Protected Member Functions

void setTexture (const Texture *texture)
 

Additional Inherited Members

- Protected Attributes inherited from lm::StaticSpriteBatch
VertexBufferP2T2C4 vbo
 
const Texturetexture
 

Detailed Description

A class representing a dynamic batch of bidimensional graphical elements.

Member Function Documentation

void lm::SpriteBatch::begin ( )

Begin the batch

void lm::SpriteBatch::end ( )

End the batch

void lm::SpriteBatch::setTexture ( const Texture texture)
protected

Set the texture

Parameters
textureThe texture

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