-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMeshObject.h
34 lines (26 loc) · 905 Bytes
/
MeshObject.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
#pragma once
#include "GameObject.h"
class MeshData;
class MeshObject final: public GameObject
{
public:
MeshObject(const std::wstring& assetFile);
~MeshObject() override;
MeshObject(const MeshObject& other) = delete;
MeshObject& operator=(const MeshObject& other) = delete;
MeshObject(const MeshObject&& other) = delete;
MeshObject& operator=(const MeshObject&& other) = delete;
void Initialize() override;
void Update(const SceneContext& sceneContext) override;
void Draw(const SceneContext& sceneContext) override;
private:
MeshData *m_pMeshData{};
std::wstring m_AssetFile{};
ID3D11InputLayout *m_pVertexLayout{};
ID3D11Buffer *m_pVertexBuffer{};
ID3D11Buffer *m_pIndexBuffer{};
ID3DX11Effect *m_pEffect{};
ID3DX11EffectTechnique *m_pTechnique{};
ID3DX11EffectMatrixVariable *m_pMatWorldViewProjVariable{};
ID3DX11EffectMatrixVariable *m_pMatWorldVariable{};
};