From dd51ec0f1fadd719f5ee298c1c40890f6db1815b Mon Sep 17 00:00:00 2001 From: TravisBot <> Date: Thu, 12 Oct 2017 13:59:45 +0000 Subject: Rebuilding documentation --- vertex_8h_source.html | 148 +++++++++++++++++++++++++++++++++++++++++++------- 1 file changed, 128 insertions(+), 20 deletions(-) (limited to 'vertex_8h_source.html') diff --git a/vertex_8h_source.html b/vertex_8h_source.html index 82aeb1da..afdd2d5c 100644 --- a/vertex_8h_source.html +++ b/vertex_8h_source.html @@ -3,22 +3,23 @@ - - + YAGE: yage/base/vertex.h Source File - - + @@ -27,7 +28,7 @@ -
+
YAGE  v0.1.1
@@ -38,19 +39,40 @@
- + - - - - + +
+ All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Pages
@@ -85,7 +107,91 @@ $(document).ready(function(){initNavTree('vertex_8h_source.html','');});
vertex.h
-Go to the documentation of this file.
1 /* ----------------------------------------------------------------------------
2  * vertex.h
3  *
4  * Copyright (c) 2017 Yann Herklotz Grave <ymherklotz@gmail.com> -- MIT License
5  * See file LICENSE for more details
6  * ----------------------------------------------------------------------------
7  */
8 
9 #ifndef VERTEX_H
10 #define VERTEX_H
11 
12 #include <glad/glad.h>
13 
14 namespace yage
15 {
16 
17 struct Position {
18  float x;
19  float y;
20 
21  Position() = default;
22 
23  Position(float x_, float y_) : x(x_), y(y_) {}
24 };
25 
26 struct Color {
27  GLubyte r;
28  GLubyte g;
29  GLubyte b;
30  GLubyte a;
31 
32  Color() = default;
33 
34  Color(GLubyte r_, GLubyte g_, GLubyte b_, GLubyte a_)
35  : r(r_), g(g_), b(b_), a(a_)
36  {
37  }
38 };
39 
40 struct UV {
41  float u;
42  float v;
43 
44  UV() = default;
45 
46  UV(float u_, float v_) : u(u_), v(v_) {}
47 };
48 
49 struct Vertex {
52  UV uv;
53 
54  Vertex() = default;
55 
56  Vertex(const Position &position_, const Color &color_, const UV &uv_)
57  : position(position_), color(color_), uv(uv_)
58  {
59  }
60 
61  void setPosition(float x, float y)
62  {
63  position.x = x;
64  position.y = y;
65  }
66 
67  void setColor(GLubyte r, GLubyte g, GLubyte b, GLubyte a)
68  {
69  color.r = r;
70  color.g = g;
71  color.b = b;
72  color.a = a;
73  }
74 
75  void setUv(float u, float v)
76  {
77  uv.u = u;
78  uv.v = v;
79  }
80 };
81 
82 } // namespace yage
83 
84 #endif
Position()=default
+Go to the documentation of this file.
1 /* ----------------------------------------------------------------------------
+
2  * vertex.h
+
3  *
+
4  * Copyright (c) 2017 Yann Herklotz Grave <ymherklotz@gmail.com> -- MIT License
+
5  * See file LICENSE for more details
+
6  * ----------------------------------------------------------------------------
+
7  */
+
8 
+
9 #ifndef VERTEX_H
+
10 #define VERTEX_H
+
11 
+
12 #include <glad/glad.h>
+
13 
+
14 namespace yage
+
15 {
+
16 
+
17 struct Position {
+
18  float x;
+
19  float y;
+
20 
+
21  Position() = default;
+
22 
+
23  Position(float x_, float y_) : x(x_), y(y_) {}
+
24 };
+
25 
+
26 struct Color {
+
27  GLubyte r;
+
28  GLubyte g;
+
29  GLubyte b;
+
30  GLubyte a;
+
31 
+
32  Color() = default;
+
33 
+
34  Color(GLubyte r_, GLubyte g_, GLubyte b_, GLubyte a_)
+
35  : r(r_), g(g_), b(b_), a(a_)
+
36  {
+
37  }
+
38 };
+
39 
+
40 struct UV {
+
41  float u;
+
42  float v;
+
43 
+
44  UV() = default;
+
45 
+
46  UV(float u_, float v_) : u(u_), v(v_) {}
+
47 };
+
48 
+
49 struct Vertex {
+ + +
52  UV uv;
+
53 
+
54  Vertex() = default;
+
55 
+
56  Vertex(const Position &position_, const Color &color_, const UV &uv_)
+
57  : position(position_), color(color_), uv(uv_)
+
58  {
+
59  }
+
60 
+
61  void setPosition(float x, float y)
+
62  {
+
63  position.x = x;
+
64  position.y = y;
+
65  }
+
66 
+
67  void setColor(GLubyte r, GLubyte g, GLubyte b, GLubyte a)
+
68  {
+
69  color.r = r;
+
70  color.g = g;
+
71  color.b = b;
+
72  color.a = a;
+
73  }
+
74 
+
75  void setUv(float u, float v)
+
76  {
+
77  uv.u = u;
+
78  uv.v = v;
+
79  }
+
80 };
+
81 
+
82 } // namespace yage
+
83 
+
84 #endif
+
Position()=default
Definition: vertex.h:49
Position position
Definition: vertex.h:50
UV(float u_, float v_)
Definition: vertex.h:46
@@ -94,19 +200,21 @@ $(document).ready(function(){initNavTree('vertex_8h_source.html','');});
float x
Definition: vertex.h:18
GLubyte g
Definition: vertex.h:28
float y
Definition: vertex.h:19
+
Vertex()=default
Color color
Definition: vertex.h:51
void setUv(float u, float v)
Definition: vertex.h:75
Color(GLubyte r_, GLubyte g_, GLubyte b_, GLubyte a_)
Definition: vertex.h:34
Position(float x_, float y_)
Definition: vertex.h:23
GLubyte r
Definition: vertex.h:27
Definition: vertex.h:40
+
UV()=default
void setPosition(float x, float y)
Definition: vertex.h:61
GLubyte b
Definition: vertex.h:29
Definition: vertex.h:17
-
Project namespace.
Definition: camera2d.cpp:13
UV uv
Definition: vertex.h:52
Vertex(const Position &position_, const Color &color_, const UV &uv_)
Definition: vertex.h:56
float u
Definition: vertex.h:41
+
Color()=default
GLubyte a
Definition: vertex.h:30
Definition: vertex.h:26
@@ -115,9 +223,9 @@ $(document).ready(function(){initNavTree('vertex_8h_source.html','');}); -- cgit