+
+
#include <spritebatch.h>
+
+
+
+
+
+
+
+
+
+
+ yage::SpriteBatch::SpriteBatch |
+ ( |
+ | ) |
+ |
+
+
+ |
+
+default |
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ yage::SpriteBatch::SpriteBatch |
+ ( |
+ const SpriteBatch & |
+ | ) |
+ |
+
+
+ |
+
+delete |
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ yage::SpriteBatch::SpriteBatch |
+ ( |
+ SpriteBatch && |
+ | ) |
+ |
+
+
+ |
+
+delete |
+
+
+
+
+
+
+
+
+
+
+
+ yage::SpriteBatch::~SpriteBatch |
+ ( |
+ | ) |
+ |
+
+
+
+
+
+
+
+
+
+
+
+
+ void yage::SpriteBatch::begin |
+ ( |
+ | ) |
+ |
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ void yage::SpriteBatch::createRenderBatches |
+ ( |
+ | ) |
+ |
+
+
+ |
+
+private |
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ void yage::SpriteBatch::createVertexArray |
+ ( |
+ | ) |
+ |
+
+
+ |
+
+private |
+
+
+
+
+
+
+
+
+
+
+
+ void yage::SpriteBatch::draw |
+ ( |
+ const glm::vec4 & |
+ destination_rect, |
+
+
+ |
+ |
+ const glm::vec4 & |
+ uv_rect, |
+
+
+ |
+ |
+ GLuint |
+ texture, |
+
+
+ |
+ |
+ const Color & |
+ color, |
+
+
+ |
+ |
+ float |
+ depth |
+
+
+ |
+ ) |
+ | |
+
+
+
+
+
+
+
+
+
+
+
+ void yage::SpriteBatch::end |
+ ( |
+ | ) |
+ |
+
+
+
+
+
+
+
+
+
+
+
+ void yage::SpriteBatch::init |
+ ( |
+ | ) |
+ |
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ void yage::SpriteBatch::render |
+ ( |
+ | ) |
+ |
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ void yage::SpriteBatch::sortGlyphs |
+ ( |
+ | ) |
+ |
+
+
+ |
+
+private |
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 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:
+