From e220711a0495e40491f3ba04c485602d70a1f7d0 Mon Sep 17 00:00:00 2001 From: Yann Herklotz Date: Sun, 13 Aug 2017 17:53:21 +0100 Subject: Removing googletest from doxygen and improving version headers --- include/YAGE/camera2d.hpp | 4 ++-- include/YAGE/picopng.hpp | 9 +++++++-- include/YAGE/spritebatch.hpp | 10 ++++------ 3 files changed, 13 insertions(+), 10 deletions(-) (limited to 'include') diff --git a/include/YAGE/camera2d.hpp b/include/YAGE/camera2d.hpp index 077d0544..e5e4e651 100644 --- a/include/YAGE/camera2d.hpp +++ b/include/YAGE/camera2d.hpp @@ -1,8 +1,8 @@ /* ---------------------------------------------------------------------------- * camera2d.hpp * - * Copyright (c) 2017 Yann Herklotz Grave -- MIT License - * See file LICENSE for more details + * Copyright (c) 2017 Yann Herklotz Grave + * MIT License, see LICENSE file for more details. * ---------------------------------------------------------------------------- */ diff --git a/include/YAGE/picopng.hpp b/include/YAGE/picopng.hpp index 0aa6c6d4..b1318da0 100644 --- a/include/YAGE/picopng.hpp +++ b/include/YAGE/picopng.hpp @@ -12,6 +12,11 @@ namespace yage { -extern int decodePNG(std::vector &out_image, unsigned long &image_width, unsigned long &image_height, const unsigned char *in_png, size_t in_size, bool convert_to_rgba32 = true); - +extern int decodePNG(std::vector &out_image, + unsigned long &image_width, + unsigned long &image_height, + const unsigned char *in_png, + size_t in_size, + bool convert_to_rgba32 = true); + } // yage 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; -- cgit