YAGE  v0.1.3
Yet Another Game Engine
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
yage::SpriteBatch Class Reference

#include <spritebatch.h>

Public Member Functions

 SpriteBatch ()
 
 SpriteBatch (const SpriteBatch &)=delete
 
 SpriteBatch (SpriteBatch &&)=delete
 
 ~SpriteBatch ()
 
SpriteBatchoperator= (const SpriteBatch &)=delete
 
SpriteBatchoperator= (SpriteBatch &&)=delete
 
void begin ()
 
void end ()
 
void draw (const yage::Vector4f &destination_rect, const yage::Vector4f &uv_rect, GLuint texture, const Colour &colour, float depth)
 
void render ()
 

Static Public Attributes

static const int NUM_VERTICES = 6
 

Private Member Functions

void createVertexArray ()
 
void createRenderBatches ()
 
void sortGlyphs ()
 

Private Attributes

GLuint vbo_ = 0
 
GLuint vao_ = 0
 
std::vector< Glyphglyphs_
 
std::vector< Glyph * > glyph_ptrs_
 
std::vector< RenderBatchrender_batches_
 

Constructor & Destructor Documentation

yage::SpriteBatch::SpriteBatch ( )
yage::SpriteBatch::SpriteBatch ( const SpriteBatch )
delete
yage::SpriteBatch::SpriteBatch ( SpriteBatch &&  )
delete
yage::SpriteBatch::~SpriteBatch ( )

Member Function Documentation

void yage::SpriteBatch::begin ( )
void yage::SpriteBatch::createRenderBatches ( )
private
void yage::SpriteBatch::createVertexArray ( )
private
void yage::SpriteBatch::draw ( const yage::Vector4f destination_rect,
const yage::Vector4f uv_rect,
GLuint  texture,
const Colour colour,
float  depth 
)
void yage::SpriteBatch::end ( )
SpriteBatch& yage::SpriteBatch::operator= ( const SpriteBatch )
delete
SpriteBatch& yage::SpriteBatch::operator= ( SpriteBatch &&  )
delete
void yage::SpriteBatch::render ( )
void yage::SpriteBatch::sortGlyphs ( )
private

Member Data Documentation

std::vector<Glyph *> yage::SpriteBatch::glyph_ptrs_
private
std::vector<Glyph> yage::SpriteBatch::glyphs_
private
const int yage::SpriteBatch::NUM_VERTICES = 6
static
std::vector<RenderBatch> yage::SpriteBatch::render_batches_
private
GLuint yage::SpriteBatch::vao_ = 0
private
GLuint yage::SpriteBatch::vbo_ = 0
private

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