CSEngine
Loading...
Searching...
No Matches
SkinningData.h
1//
2// Created by ounols on 19. 1. 15.
3//
4
5#pragma once
6
7#include <vector>
8#include <string>
9#include "../../../../MacroDef.h"
10
11namespace CSE {
12
14 public:
15 SkinningData() = default;
16
18 for (auto skin : m_verticesSkinData) {
19 SAFE_DELETE(skin);
20 }
21
22 m_verticesSkinData.clear();
23 }
24
25 const std::vector<std::string>& get_jointOrder() const {
26 return m_jointOrder;
27 }
28
29 void set_jointOrder(const std::vector<std::string>& m_jointOrder) {
30 SkinningData::m_jointOrder = m_jointOrder;
31 }
32
33 const std::vector<VertexSkinData*>& get_verticesSkinData() const {
34 return m_verticesSkinData;
35 }
36
37 void set_verticesSkinData(const std::vector<VertexSkinData*>& m_verticesSkinData) {
38 SkinningData::m_verticesSkinData = m_verticesSkinData;
39 }
40
41 private:
42 std::vector<std::string> m_jointOrder;
43
44 private:
45 std::vector<VertexSkinData*> m_verticesSkinData;
46
47
48 };
49
50}