dl
dl_mesh.h
浏览该文件的文档.
1
10#pragma once
11
12#include <vector>
13
14#include "base/dl_type_def.h"
15
16namespace dl
17{
18
19 enum class MeshType
20 {
23 };
24
25class Mesh
26{
27public:
28 void InitBox(float x, float y, float z);
29 void Offset(const Position3& pos);
30
31 const std::vector<Position3>& GetVertex() { return _allVertex; }
32 const std::vector<uint32_t>& GetIndex() { return _allIndex; }
33
34 Mesh() :
35 _type{ MeshType::NONE }
36 {
37 }
38private:
39 MeshType _type;
40 std::vector<Position3> _allVertex;
41 std::vector<uint32_t> _allIndex;
42};
43}
const std::vector< Position3 > & GetVertex()
void Offset(const Position3 &pos)
void InitBox(float x, float y, float z)
const std::vector< uint32_t > & GetIndex()
通用类型定义
Array< Float, 3 > Position3