aboutsummaryrefslogtreecommitdiffstats
path: root/include/YAGE/spritebatch.hpp
diff options
context:
space:
mode:
authorYann Herklotz <ymherklotz@gmail.com>2017-08-13 17:53:21 +0100
committerYann Herklotz <ymherklotz@gmail.com>2017-08-13 17:53:21 +0100
commite220711a0495e40491f3ba04c485602d70a1f7d0 (patch)
tree498ae4158e4cddd2ffc9ac10ad927815202aee3c /include/YAGE/spritebatch.hpp
parentb3d29409c0ec90a32a91243675a3f55617cf63e1 (diff)
downloadYAGE-e220711a0495e40491f3ba04c485602d70a1f7d0.tar.gz
YAGE-e220711a0495e40491f3ba04c485602d70a1f7d0.zip
Removing googletest from doxygen and improving version headers
Diffstat (limited to 'include/YAGE/spritebatch.hpp')
-rw-r--r--include/YAGE/spritebatch.hpp10
1 files changed, 4 insertions, 6 deletions
diff --git a/include/YAGE/spritebatch.hpp b/include/YAGE/spritebatch.hpp
index 9446c40f..1b1c8bb8 100644
--- a/include/YAGE/spritebatch.hpp
+++ b/include/YAGE/spritebatch.hpp
@@ -6,8 +6,8 @@
* ----------------------------------------------------------------------------
*/
-#ifndef SPRITE_BATCH_HPP
-#define SPRITE_BATCH_HPP
+#ifndef YAGE_SPRITE_BATCH_HPP
+#define YAGE_SPRITE_BATCH_HPP
#include "vertex.hpp"
@@ -20,6 +20,8 @@ namespace yage {
class SpriteBatch;
+/** Glyph with information of the texture.
+ */
class Glyph {
// member variables
private:
@@ -46,24 +48,20 @@ public:
class RenderBatch {
friend SpriteBatch;
- // member variables
private:
GLsizei num_vertices_;
GLint offset_;
GLuint texture_;
- // member functions
public:
RenderBatch(GLint offset, GLsizei num_vertices, GLuint texture);
- // getters
GLint offset() const { return offset_; }
GLsizei num_vertices() const { return num_vertices_; }
GLuint texture() const { return texture_; }
};
class SpriteBatch {
- // member variables
public:
static const int NUM_VERTICES = 6;