/* # ______ ____ ___ # | \/ ____| |___| # | | | \ | | #----------------------------------------------------------------------- # Copyright 2022, tyra - https://github.com/h4570/tyra # Licenced under Apache License 2.0 # Sandro Sobczyński */ #pragma once #include "loaders/3d/builder/mesh_builder_data.hpp" #include "./renderer/3d/bbox/bbox.hpp" namespace Tyra { class MeshMaterialFrame { public: explicit MeshMaterialFrame(const MeshBuilderData& data, const u32& frameIndex, const u32& materialIndex); explicit MeshMaterialFrame(const MeshMaterialFrame& frame); ~MeshMaterialFrame(); u8 isMother; u32 id, count; Vec4 *vertices, *textureCoords, *normals; Color* colors; BBox* bbox; void print() const; void print(const char* name) const; void print(const std::string& name) const { print(name.c_str()); } std::string getPrint(const char* name = nullptr) const; }; } // namespace Tyra