Archived
1
Fork 0
This repository has been archived on 2025-04-08. You can view files and clone it, but cannot push or open issues or pull requests.
libxiv/include/mdlparser.h

25 lines
No EOL
384 B
C++

#pragma once
#include <string_view>
#include <vector>
#include <array>
struct Vertex {
std::array<float, 3> position;
std::array<float, 3> normal;
};
struct Part {
std::vector<Vertex> vertices;
std::vector<uint16_t> indices;
};
struct Lod {
std::vector<Part> parts;
};
struct Model {
std::vector<Lod> lods;
};
Model parseMDL(const std::string_view path);