From dc2aabf8ed6955d3ca3782c9f144aa62aefaec61 Mon Sep 17 00:00:00 2001 From: TravisBot <> Date: Sun, 17 Dec 2017 11:02:52 +0000 Subject: Rebuilding documentation --- spritebatch_8h_source.html | 62 ++++++++++++++++++++++------------------------ 1 file changed, 30 insertions(+), 32 deletions(-) (limited to 'spritebatch_8h_source.html') diff --git a/spritebatch_8h_source.html b/spritebatch_8h_source.html index cfb5815e..d10edcbc 100644 --- a/spritebatch_8h_source.html +++ b/spritebatch_8h_source.html @@ -194,41 +194,38 @@ $(document).ready(function(){initNavTree('spritebatch_8h_source.html','');});
89  SpriteBatch &operator=(SpriteBatch &&) = delete;
90 
91  // initialize vaos and vbos
-
92  void init();
-
93  void begin();
-
94  void end();
-
95 
-
96  // adds a sprite to the sprite batch to be rendered later
-
97  void draw(const yage::Vector4f &destination_rect,
-
98  const yage::Vector4f &uv_rect, GLuint texture, const Color &color,
-
99  float depth);
-
100  // render the batch
-
101  void render();
-
102 
-
103 private:
-
104  void createVertexArray();
-
105  void createRenderBatches();
-
106  void sortGlyphs();
-
107 };
-
108 
-
109 } // namespace yage
-
110 
-
111 #endif
+
92  void begin();
+
93  void end();
+
94 
+
95  // adds a sprite to the sprite batch to be rendered later
+
96  void draw(const yage::Vector4f &destination_rect,
+
97  const yage::Vector4f &uv_rect, GLuint texture, const Colour &colour,
+
98  float depth);
+
99  // render the batch
+
100  void render();
+
101 
+
102 private:
+
103  void createVertexArray();
+
104  void createRenderBatches();
+
105  void sortGlyphs();
+
106 };
+
107 
+
108 } // namespace yage
+
109 
+
110 #endif
yage::RenderBatch
Definition: spritebatch.h:53
yage::SpriteBatch::glyph_ptrs_
std::vector< Glyph * > glyph_ptrs_
Definition: spritebatch.h:79
yage::RenderBatch::texture_
GLuint texture_
Definition: spritebatch.h:60
yage::Glyph::bottom_left_
Vertex bottom_left_
Definition: spritebatch.h:38
-
yage::SpriteBatch::end
void end()
Definition: spritebatch.cpp:58
+
yage::SpriteBatch::end
void end()
Definition: spritebatch.cpp:56
yage::Vertex
Definition: vertex.h:49
yage::SpriteBatch
Definition: spritebatch.h:70
yage::Glyph::bottom_right
Vertex bottom_right() const
Definition: spritebatch.h:49
-
yage::SpriteBatch::init
void init()
Definition: spritebatch.cpp:46
-
yage::SpriteBatch::draw
void draw(const yage::Vector4f &destination_rect, const yage::Vector4f &uv_rect, GLuint texture, const Color &color, float depth)
Definition: spritebatch.cpp:64
-
yage::SpriteBatch::createVertexArray
void createVertexArray()
Definition: spritebatch.cpp:105
-
yage::SpriteBatch::begin
void begin()
Definition: spritebatch.cpp:51
+
yage::SpriteBatch::createVertexArray
void createVertexArray()
Definition: spritebatch.cpp:112
+
yage::SpriteBatch::begin
void begin()
Definition: spritebatch.cpp:49
yage::Glyph::top_left_
Vertex top_left_
Definition: spritebatch.h:35
yage::Glyph::bottom_left
Vertex bottom_left() const
Definition: spritebatch.h:50
-
yage::SpriteBatch::render
void render()
Definition: spritebatch.cpp:95
+
yage::SpriteBatch::render
void render()
Definition: spritebatch.cpp:93
yage::SpriteBatch::operator=
SpriteBatch & operator=(const SpriteBatch &)=delete
yage::Glyph::Glyph
Glyph(GLuint texture, float depth, const Vertex &top_left, const Vertex &top_right, const Vertex &bottom_right, const Vertex &bottom_left)
Definition: spritebatch.cpp:19
yage::SpriteBatch::vbo_
GLuint vbo_
Definition: spritebatch.h:76
@@ -236,37 +233,38 @@ $(document).ready(function(){initNavTree('spritebatch_8h_source.html','');});
yage::RenderBatch::offset
GLint offset() const
Definition: spritebatch.h:65
vertex.h
yage::RenderBatch::SpriteBatch
friend SpriteBatch
Definition: spritebatch.h:55
-
yage::SpriteBatch::createRenderBatches
void createRenderBatches()
Definition: spritebatch.cpp:143
+
yage::SpriteBatch::createRenderBatches
void createRenderBatches()
Definition: spritebatch.cpp:150
matrix.h
yage::Glyph::texture_
GLuint texture_
Definition: spritebatch.h:33
yage::Glyph::depth
float depth() const
Definition: spritebatch.h:46
yage::Glyph::bottom_right_
Vertex bottom_right_
Definition: spritebatch.h:37
yage::SpriteBatch::NUM_VERTICES
static const int NUM_VERTICES
Definition: spritebatch.h:73
+
yage::SpriteBatch::draw
void draw(const yage::Vector4f &destination_rect, const yage::Vector4f &uv_rect, GLuint texture, const Colour &colour, float depth)
Definition: spritebatch.cpp:62
yage::SpriteBatch::vao_
GLuint vao_
Definition: spritebatch.h:77
yage::Glyph::texture
GLuint texture() const
Definition: spritebatch.h:45
yage::SpriteBatch::render_batches_
std::vector< RenderBatch > render_batches_
Definition: spritebatch.h:80
yage::SpriteBatch::glyphs_
std::vector< Glyph > glyphs_
Definition: spritebatch.h:78
-
yage::SpriteBatch::SpriteBatch
SpriteBatch()
+
yage::SpriteBatch::SpriteBatch
SpriteBatch()
Definition: spritebatch.cpp:33
yage::RenderBatch::offset_
GLint offset_
Definition: spritebatch.h:59
+
yage::Colour
Definition: vertex.h:26
yage::RenderBatch::num_vertices
GLsizei num_vertices() const
Definition: spritebatch.h:66
yage::Glyph::top_right_
Vertex top_right_
Definition: spritebatch.h:36
yage::RenderBatch::texture
GLuint texture() const
Definition: spritebatch.h:67
-
yage::SpriteBatch::sortGlyphs
void sortGlyphs()
Definition: spritebatch.cpp:181
+
yage::SpriteBatch::sortGlyphs
void sortGlyphs()
Definition: spritebatch.cpp:188
yage::Vector4
4D Vector class
Definition: matrix.h:376
yage::Glyph
Glyph with information of the texture.
Definition: spritebatch.h:30
yage::RenderBatch::num_vertices_
GLsizei num_vertices_
Definition: spritebatch.h:58
yage::RenderBatch::RenderBatch
RenderBatch(GLint offset, GLsizei num_vertices, GLuint texture)
Definition: spritebatch.cpp:28
-
yage::SpriteBatch::~SpriteBatch
~SpriteBatch()
Definition: spritebatch.cpp:35
+
yage::SpriteBatch::~SpriteBatch
~SpriteBatch()
Definition: spritebatch.cpp:38
yage::Glyph::top_left
Vertex top_left() const
Definition: spritebatch.h:47
yage::Glyph::top_right
Vertex top_right() const
Definition: spritebatch.h:48
-
yage::Color
Definition: vertex.h:26