blob: a0edca77f9d7e0d1f71bfa23025b0a0f90c6e276 (
plain)
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
|
#ifndef _MATERIAL_H
#define _MATERIAL_H
#include "../json.h"
#include "../engine.h"
namespace Mauri
{
enum MaterialType
{
MATERIAL_MODEL = 0,
MATERIAL_EFFECT
};
class Pass;
class Material
{
public:
Material() = default;
~Material();
static auto parse(Parser &pr, const std::string &path) -> Material *;
std::vector<Pass *> passes0;
auto load(Engine *engine, Object *object, MaterialType type, Pass *pass) -> void;
};
} // namespace Mauri
#endif // MATERIAL_H
|