Euphoria
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
libs
files
src
files
materialshader.cc
Go to the documentation of this file.
1
#include "
files/materialshader.h
"
2
3
#include "
io/json.h
"
4
5
6
namespace
eu::files::materialshader
7
{
8
JSON_PARSE_FUNC
(
Binding
)
9
{
10
JSON_BEGIN_OBJECT
();
11
JSON_VAL
(String, texture);
12
JSON_VAL
(String, uniform);
13
JSON_END_OBJECT
();
14
}
15
16
17
JSON_PARSE_FUNC
(
DefaultTexture
)
18
{
19
JSON_BEGIN_OBJECT
();
20
JSON_VAL
(String, texture);
21
JSON_VAL
(String, path);
22
JSON_END_OBJECT
();
23
}
24
25
26
JSON_PARSE_FUNC
(
MaterialShader
)
27
{
28
JSON_BEGIN_OBJECT
();
29
30
JSON_ARRAY
(
Binding
, textures);
31
JSON_VAL
(Bool, has_light);
32
33
JSON_OPT_VAL
(String, ambient);
34
JSON_OPT_VAL
(String, diffuse);
35
JSON_OPT_VAL
(String, specular);
36
JSON_OPT_VAL
(String, shininess);
37
38
JSON_ARRAY
(
DefaultTexture
, default_textures);
39
40
JSON_END_OBJECT
();
41
}
42
}
materialshader.h
json.h
JSON_BEGIN_OBJECT
#define JSON_BEGIN_OBJECT()
Definition:
json.h:86
JSON_VAL
#define JSON_VAL(TYPE, PROP)
Definition:
json.h:128
JSON_END_OBJECT
#define JSON_END_OBJECT()
Definition:
json.h:166
JSON_ARRAY
#define JSON_ARRAY(TYPE, PROP)
Definition:
json.h:132
JSON_OPT_VAL
#define JSON_OPT_VAL(TYPE, PROP)
Definition:
json.h:129
eu::files::materialshader
Definition:
materialshader.cc:7
eu::files::materialshader::JSON_PARSE_FUNC
JSON_PARSE_FUNC(Binding)
Definition:
materialshader.cc:8
eu::files::materialshader::Binding
Definition:
materialshader.h:9
eu::files::materialshader::DefaultTexture
Definition:
materialshader.h:15
eu::files::materialshader::MaterialShader
Definition:
materialshader.h:21