-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMesh.h
More file actions
28 lines (26 loc) · 668 Bytes
/
Copy pathMesh.h
File metadata and controls
28 lines (26 loc) · 668 Bytes
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
#pragma once
#include "Vertex.h"
#include "Texture.h"
#include "DxHandler.h"
struct Mesh
{
private:
bool LoadModel(std::string name);
bool LoadMaterial(ID3D11Device* device, std::string name);
int indexCount;
//std::string name;
public:
std::string name;
Material material;
ID3D11Buffer* mtlBuffer;
Mesh() = default;
Mesh(ID3D11Device* device, std::string name);
~Mesh();
ID3D11Buffer* GetMTLBuffer();
int vertexCount = 0;
// Struct from geometry
std::vector<Face> faces;
std::vector<XMFLOAT3> positions; //stores positions of every vertex, this is used in the shadow vertex shader
void Shutdown();
int GetIndexCount();
};