-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathTexture.h
More file actions
38 lines (34 loc) · 688 Bytes
/
Texture.h
File metadata and controls
38 lines (34 loc) · 688 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
29
30
31
32
33
34
35
36
37
38
#pragma once
#include "Common.h"
#include <string>
#include <vector>
struct Texture {
uint id;
std::string path;
enum Type {
diffuse,
specular,
normal,
height
} type;
};
using Textures = std::vector<Texture>;
namespace std {
inline std::string to_string(Texture::Type type)
{
switch (type) {
case Texture::diffuse:
return "texture_diffuse";
case Texture::specular:
return "texture_specular";
case Texture::normal:
return "texture_normal";
case Texture::height:
return "texture_height";
default:
break;
}
assert(false); // should not be possible!
return "";
}
}