/* # _____ ____ ___ # | \/ ____| |___| # | | | \ | | #----------------------------------------------------------------------- # Copyright 2022, tyra - https://github.com/h4570/tyra # Licensed under Apache License 2.0 # Sandro Sobczyński */ #pragma once #include "../builder/mesh_builder_data.hpp" #include #include namespace Tyra { struct MD2LoaderOptions { bool flipUVs = false; float scale = 1.0F; }; /** Class responsible for loading & parsing Quake's II ".md2" 3D files */ class MD2Loader { public: static std::unique_ptr load(const char* fullpath); static std::unique_ptr load(const char* fullpath, MD2LoaderOptions options); static std::unique_ptr load(const std::string& fullpath); static std::unique_ptr load(const std::string& fullpath, MD2LoaderOptions options); }; } // namespace Tyra