From be5d48d2eaed3af76f03297e376f7a67e8a8238f Mon Sep 17 00:00:00 2001 From: TravisBot <> Date: Wed, 20 Dec 2017 18:02:11 +0000 Subject: Rebuilding documentation --- spritesheet_8h_source.html | 138 ++++++++++++++++++++++----------------------- 1 file changed, 66 insertions(+), 72 deletions(-) (limited to 'spritesheet_8h_source.html') diff --git a/spritesheet_8h_source.html b/spritesheet_8h_source.html index 1bec0410..6387e647 100644 --- a/spritesheet_8h_source.html +++ b/spritesheet_8h_source.html @@ -30,7 +30,7 @@
YAGE -  v0.3.1 +  v0.1.3
Yet Another Game Engine
@@ -108,91 +108,85 @@ $(document).ready(function(){initNavTree('spritesheet_8h_source.html','');});
spritesheet.h
-Go to the documentation of this file.
1 /* ----------------------------------------------------------------------------
-
2  * spritesheet.h
-
3  *
-
4  * Copyright (c) 2017 Yann Herklotz Grave <ymherklotz@gmail.com>
-
5  * MIT License, see LICENSE file for more details.
-
6  * ----------------------------------------------------------------------------
-
7  */
-
8 
-
12 #ifndef YAGE_SPRITESHEET_H
-
13 #define YAGE_SPRITESHEET_H
-
14 
-
15 #include "texture.h"
-
16 
-
17 #include <rapidjson/reader.h>
-
18 
-
19 #include <map>
-
20 #include <string>
+Go to the documentation of this file.
1 
+
9 
+
11 #ifndef YAGE_SPRITESHEET_H
+
12 #define YAGE_SPRITESHEET_H
+
13 
+
18 #include "texture.h"
+
19 
+
20 #include <rapidjson/reader.h>
21 
-
22 namespace yage
-
23 {
+
22 #include <map>
+
23 #include <string>
24 
-
25 namespace details
+
25 namespace yage
26 {
27 
-
28 struct Coordinate {
-
29  int x;
-
30  int y;
-
31  int width;
-
32  int height;
-
33 
-
34  Coordinate() = default;
-
35 
-
36  Coordinate(int x_i, int y_i, int width_i, int height_i)
-
37  : x(x_i), y(y_i), width(width_i), height(height_i)
-
38  {
-
39  }
-
40 };
-
41 
-
42 typedef std::map<std::string, details::Coordinate> SpriteMap;
-
43 
-
44 } // namespace details
-
45 
- -
47 {
-
48 public:
-
49  SpriteSheet(std::string pngFileName, std::string jsonFileName);
-
50 
-
51  void sprite(std::string spriteName) const;
-
52  std::string fileContent(std::string jsonFileName) const;
+
28 namespace details
+
29 {
+
30 
+
31 struct Coordinate {
+
32  int x;
+
33  int y;
+
34  int width;
+
35  int height;
+
36 
+
37  Coordinate() = default;
+
38 
+
39  Coordinate(int x_i, int y_i, int width_i, int height_i)
+
40  : x(x_i), y(y_i), width(width_i), height(height_i)
+
41  {
+
42  }
+
43 };
+
44 
+
45 typedef std::map<std::string, details::Coordinate> SpriteMap;
+
46 
+
47 } // namespace details
+
48 
+ +
50 {
+
51 public:
+
52  SpriteSheet(std::string pngFileName, std::string jsonFileName);
53 
-
54 private:
- - -
57 
-
58  details::SpriteMap parseJson(int &width, int &height,
-
59  std::string jsonContent) const;
-
60 };
-
61 
-
62 } // namespace yage
-
63 
-
64 #endif
-
Definition: spritesheet.h:46
-
Coordinate(int x_i, int y_i, int width_i, int height_i)
Definition: spritesheet.h:36
-
SpriteSheet(std::string pngFileName, std::string jsonFileName)
Definition: spritesheet.cpp:29
+
54  void sprite(std::string spriteName) const;
+
55  std::string fileContent(std::string jsonFileName) const;
+
56 
+
57 private:
+ + +
60 
+
61  details::SpriteMap parseJson(int &width, int &height,
+
62  std::string jsonContent) const;
+
63 };
+
64 
+
65 } // namespace yage
+
66 
+
67 #endif
+
Definition: spritesheet.h:49
+
Coordinate(int x_i, int y_i, int width_i, int height_i)
Definition: spritesheet.h:39
+
SpriteSheet(std::string pngFileName, std::string jsonFileName)
Definition: spritesheet.cpp:28
-
int x
Definition: spritesheet.h:29
- -
std::map< std::string, details::Coordinate > SpriteMap
Definition: spritesheet.h:42
-
Texture texture_
Definition: spritesheet.h:55
-
int width
Definition: spritesheet.h:31
+
int x
Definition: spritesheet.h:32
+ +
std::map< std::string, details::Coordinate > SpriteMap
Definition: spritesheet.h:45
+
Texture texture_
Definition: spritesheet.h:58
+
int width
Definition: spritesheet.h:34
void sprite(std::string spriteName) const
-
int height
Definition: spritesheet.h:32
-
std::string fileContent(std::string jsonFileName) const
Definition: spritesheet.cpp:42
+
int height
Definition: spritesheet.h:35
Definition: texture.h:17
-
Definition: spritesheet.h:28
-
int y
Definition: spritesheet.h:30
-
details::SpriteMap parseJson(int &width, int &height, std::string jsonContent) const
Definition: spritesheet.cpp:52
-
details::SpriteMap fileLocations_
Definition: spritesheet.h:56
+
Definition: spritesheet.h:31
+
int y
Definition: spritesheet.h:33
+
std::string fileContent(std::string jsonFileName) const
Definition: spritesheet.cpp:41
+
details::SpriteMap parseJson(int &width, int &height, std::string jsonContent) const
Definition: spritesheet.cpp:51
+
details::SpriteMap fileLocations_
Definition: spritesheet.h:59