Euphoria
materialshader.cc
Go to the documentation of this file.
1 #include "files/materialshader.h"
2 
3 #include "io/json.h"
4 
5 
7 {
9  {
11  JSON_VAL(String, texture);
12  JSON_VAL(String, uniform);
14  }
15 
16 
18  {
20  JSON_VAL(String, texture);
21  JSON_VAL(String, path);
23  }
24 
25 
27  {
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 
41  }
42 }
#define JSON_BEGIN_OBJECT()
Definition: json.h:86
#define JSON_VAL(TYPE, PROP)
Definition: json.h:128
#define JSON_END_OBJECT()
Definition: json.h:166
#define JSON_ARRAY(TYPE, PROP)
Definition: json.h:132
#define JSON_OPT_VAL(TYPE, PROP)
Definition: json.h:129