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
384 B
C
Raw Normal View History

#pragma once
#include <string_view>
#include <vector>
#include <array>
struct Vertex {
2022-04-12 09:11:14 -04:00
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);