This repository has been archived by the owner on Sep 6, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
PHsSubMesh.h
63 lines (52 loc) · 1.57 KB
/
PHsSubMesh.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
/*
2016.01.30
Created by PHJ.
*/
#ifndef _PHS_SUB_MESH_H
#define _PHS_SUB_MESH_H
#include "PHsCommon.h"
#include "PHsBinaryReader.h"
#include "PHsMaterial.h"
#include "PHsOpenGLExt.h"
#include "PHsVideoBuffer.h"
#include "PHsVideoBufferSlot.h"
#include <string>
#include <utility>
namespace PHs
{
/*
TODO : Place your code here
*/
inline namespace PHsResource
{
class SubMesh final
{
public:
uInt nSubMeshVertexCount;
uInt nSubMeshNormalCount;
uInt nSubMeshTexCoordCount;
uInt nSubMeshTangentCount;
uInt nSubMeshIndexCount;
const Material *pSubMeshMaterialPointer{nullptr};
VideoBuffer sSubMeshVertexBuffer{VideoBufferType::BufferType_Array};
VideoBuffer sSubMeshNormalBuffer{VideoBufferType::BufferType_Array};
VideoBuffer sSubMeshTexCoordBuffer{VideoBufferType::BufferType_Array};
VideoBuffer sSubMeshTangentBuffer{VideoBufferType::BufferType_Array};
VideoBuffer sSubMeshIndexBuffer{VideoBufferType::BufferType_Element};
VideoBufferSlot sSubMeshVideoBufferSlot;
std::wstring sSubMeshName;
std::wstring sSubMeshMaterialName;
public:
SubMesh(BinaryReader &sNewBinaryReader);
SubMesh(SubMesh &&sNewSubMesh);
SubMesh(const SubMesh &sNewSubMesh) = delete;
~SubMesh() = default;
public:
SubMesh &operator=(SubMesh &&sNewSubMesh);
SubMesh &operator=(const SubMesh &sNewSubMesh) = delete;
Void initializeVideoBufferSlot(uInt nNewVertexIndex, uInt nNewNormalIndex, uInt nNewTexCoordIndex, uInt nNewTangentIndex);
Void finalizeVideoBufferSlot();
};
}
}
#endif