Graphics v0.0.0
A simple abstraction layer for the modern graphics APIs.
载入中...
搜索中...
未找到
Model.h
1// Copyright 2022 ShenMian
2// License(Apache-2.0)
3
4#pragma once
5
6#include "Animation.h"
7#include "Bone.h"
8#include "Material.h"
9#include "Mesh.h"
10#include <math/math.hpp>
11#include <string>
12
20struct Model
21{
22 std::string name;
23 std::vector<Mesh> meshes;
24 std::vector<Material> materials;
25 std::vector<Bone> bones;
26 std::vector<Animation> animations;
27 std::filesystem::path path;
28
29 AABB<3> aabb;
30
31 uint32_t vertexCount = 0;
32 uint32_t indexCount = 0;
33
34 void load(const std::filesystem::path& path);
35 void save(const std::filesystem::path& path);
36};
37
3D 模型.
Definition: Model.h:21