1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 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; }; }