From c7dad1e929c0101386fbcdaa194e402d68f74752 Mon Sep 17 00:00:00 2001 From: Yann Herklotz Date: Wed, 23 Aug 2017 22:56:53 +0100 Subject: Updating docs --- classyage_1_1SpriteBatch.html | 635 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 635 insertions(+) create mode 100644 classyage_1_1SpriteBatch.html (limited to 'classyage_1_1SpriteBatch.html') diff --git a/classyage_1_1SpriteBatch.html b/classyage_1_1SpriteBatch.html new file mode 100644 index 00000000..73ffb6f6 --- /dev/null +++ b/classyage_1_1SpriteBatch.html @@ -0,0 +1,635 @@ + + + + + + + +YAGE: yage::SpriteBatch Class Reference + + + + + + + + + + + + + + +
+
+ + + + + + +
+
YAGE +  0.02 +
+
Yet Another Game Engine
+
+
+ + + + + + + +
+
+ +
+
+
+ +
+ +
+
+ + +
+ +
+ + +
+ +

#include <spritebatch.hpp>

+ + + + + + + + + + + + + + + + + + + + + + + + +

+Public Member Functions

 SpriteBatch ()
 
 SpriteBatch (const SpriteBatch &)=delete
 
 SpriteBatch (SpriteBatch &&)=delete
 
 ~SpriteBatch ()
 
SpriteBatchoperator= (const SpriteBatch &)=delete
 
SpriteBatchoperator= (SpriteBatch &&)=delete
 
void init ()
 
void begin ()
 
void end ()
 
void draw (const glm::vec4 &destination_rect, const glm::vec4 &uv_rect, GLuint texture, const Color &color, 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

+ +

◆ SpriteBatch() [1/3]

+ +
+
+ + + + + +
+ + + + + + + +
yage::SpriteBatch::SpriteBatch ()
+
+default
+
+ +
+
+ +

◆ SpriteBatch() [2/3]

+ +
+
+ + + + + +
+ + + + + + + + +
yage::SpriteBatch::SpriteBatch (const SpriteBatch)
+
+delete
+
+ +
+
+ +

◆ SpriteBatch() [3/3]

+ +
+
+ + + + + +
+ + + + + + + + +
yage::SpriteBatch::SpriteBatch (SpriteBatch && )
+
+delete
+
+ +
+
+ +

◆ ~SpriteBatch()

+ +
+
+ + + + + + + +
yage::SpriteBatch::~SpriteBatch ()
+
+ +
+
+

Member Function Documentation

+ +

◆ begin()

+ +
+
+ + + + + + + +
void yage::SpriteBatch::begin ()
+
+ +
+
+ +

◆ createRenderBatches()

+ +
+
+ + + + + +
+ + + + + + + +
void yage::SpriteBatch::createRenderBatches ()
+
+private
+
+ +
+
+ +

◆ createVertexArray()

+ +
+
+ + + + + +
+ + + + + + + +
void yage::SpriteBatch::createVertexArray ()
+
+private
+
+ +
+
+ +

◆ draw()

+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
void yage::SpriteBatch::draw (const glm::vec4 & destination_rect,
const glm::vec4 & uv_rect,
GLuint texture,
const Colorcolor,
float depth 
)
+
+ +
+
+ +

◆ end()

+ +
+
+ + + + + + + +
void yage::SpriteBatch::end ()
+
+ +
+
+ +

◆ init()

+ +
+
+ + + + + + + +
void yage::SpriteBatch::init ()
+
+ +
+
+ +

◆ operator=() [1/2]

+ +
+
+ + + + + +
+ + + + + + + + +
SpriteBatch& yage::SpriteBatch::operator= (const SpriteBatch)
+
+delete
+
+ +
+
+ +

◆ operator=() [2/2]

+ +
+
+ + + + + +
+ + + + + + + + +
SpriteBatch& yage::SpriteBatch::operator= (SpriteBatch && )
+
+delete
+
+ +
+
+ +

◆ render()

+ +
+
+ + + + + + + +
void yage::SpriteBatch::render ()
+
+ +
+
+ +

◆ sortGlyphs()

+ +
+
+ + + + + +
+ + + + + + + +
void yage::SpriteBatch::sortGlyphs ()
+
+private
+
+ +
+
+

Member Data Documentation

+ +

◆ glyph_ptrs_

+ +
+
+ + + + + +
+ + + + +
std::vector<Glyph*> yage::SpriteBatch::glyph_ptrs_
+
+private
+
+ +
+
+ +

◆ glyphs_

+ +
+
+ + + + + +
+ + + + +
std::vector<Glyph> yage::SpriteBatch::glyphs_
+
+private
+
+ +
+
+ +

◆ NUM_VERTICES

+ +
+
+ + + + + +
+ + + + +
const int yage::SpriteBatch::NUM_VERTICES = 6
+
+static
+
+ +
+
+ +

◆ render_batches_

+ +
+
+ + + + + +
+ + + + +
std::vector<RenderBatch> yage::SpriteBatch::render_batches_
+
+private
+
+ +
+
+ +

◆ vao_

+ +
+
+ + + + + +
+ + + + +
GLuint yage::SpriteBatch::vao_ = 0
+
+private
+
+ +
+
+ +

◆ vbo_

+ +
+
+ + + + + +
+ + + + +
GLuint yage::SpriteBatch::vbo_ = 0
+
+private
+
+ +
+
+
The documentation for this class was generated from the following files: +
+
+ + + + -- cgit