From 83c78e2b5cc9b0cb737ec3785722ae280bd29b65 Mon Sep 17 00:00:00 2001 From: dec05eba Date: Fri, 14 Feb 2020 10:43:26 +0100 Subject: Use shader from file.. --- include/Vertex.hpp | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 include/Vertex.hpp (limited to 'include/Vertex.hpp') diff --git a/include/Vertex.hpp b/include/Vertex.hpp new file mode 100644 index 0000000..ab98d3b --- /dev/null +++ b/include/Vertex.hpp @@ -0,0 +1,28 @@ +#pragma once + +#include "types.hpp" + +namespace amalgine { + class Vertex2D { + public: + Vertex2D(f32 _x = 0.0f, f32 _y = 0.0f) : x(_x), y(_y) + { + + } + + f32 x; + f32 y; + }; + + class Vertex3D { + public: + Vertex3D(f32 _x = 0.0f, f32 _y = 0.0f, f32 _z = 0.0f) : x(_x), y(_y), z(_z) + { + + } + + f32 x; + f32 y; + f32 z; + }; +} \ No newline at end of file -- cgit v1.2.3