Open BartSiwek opened 3 years ago
Something like this:
namespace Gris::Graphics::VertexData { struct Position3 { glm::vec3 Position; }; struct Position3 { glm::vec3 Position; }; struct Color3 { glm::vec3 Color; }; struct Color4 { glm::vec4 Color; }; struct TextureCoords { glm::vec2 TextureCoords; }; } namespace Gris::Graphics { template<typename... Fields> struct Vertex : public Fields... { }; template<typename VertexT> struct Mesh { std::vector<VertexT> Vertices = {}; std::vector<uint32_t> Indices = {}; uint32_t BaseVertex = 0; }; } // namespace Gris::Graphics
Something like this: