aboutsummaryrefslogtreecommitdiffstats
path: root/include/YAGE/vertex.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'include/YAGE/vertex.hpp')
-rw-r--r--include/YAGE/vertex.hpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/include/YAGE/vertex.hpp b/include/YAGE/vertex.hpp
index d3355b11..1026253e 100644
--- a/include/YAGE/vertex.hpp
+++ b/include/YAGE/vertex.hpp
@@ -17,7 +17,7 @@ struct Position {
float x;
float y;
- Position() {}
+ Position() = default;
Position(float x_, float y_) : x(x_), y(y_) {}
};
@@ -28,7 +28,7 @@ struct Color {
GLubyte b;
GLubyte a;
- Color() {}
+ Color() = default;
Color(GLubyte r_, GLubyte g_, GLubyte b_, GLubyte a_)
: r(r_), g(g_), b(b_), a(a_) {}
@@ -38,7 +38,7 @@ struct UV {
float u;
float v;
- UV() {}
+ UV() = default;
UV(float u_, float v_) : u(u_), v(v_) {}
};
@@ -48,7 +48,7 @@ struct Vertex {
Color color;
UV uv;
- Vertex() {}
+ Vertex() = default;
Vertex(const Position& position_, const Color& color_, const UV& uv_)
: position(position_), color(color_), uv(uv_) {}