Euphoria
mesh.cc
Go to the documentation of this file.
1 #include "files/mesh.h"
2 
3 #include "io/json.h"
4 
5 
6 namespace eu::files::mesh
7 {
9  {
11 
12  JSON_VAL(String, type);
13  JSON_VAL(String, path);
14 
16  }
17 
18 
20  {
22 
23  JSON_VAL(String, name);
24  JSON_ARRAY(Texture, textures);
25 
27  }
28 
29 
31  {
33 
34  JSON_ARRAY(Material, materials);
35  JSON_OPT_VAL(Bool, diffuse_and_ambient_are_same);
36 
38  }
39 
40 
42  {
44 
45  JSON_VAL(String, old_ext);
46  JSON_VAL(String, new_ext);
47 
49  }
50 
51 
53  {
55 
56  JSON_VAL(String, old_file);
57  JSON_VAL(String, new_file);
58 
60  }
61 
62 
64  {
66 
67  JSON_VAL(String, texture_override);
68  JSON_ARRAY(Extension, change_extensions);
69  JSON_ARRAY(Filename, change_filenames);
70  JSON_OPT_VAL(Number, scale);
71 
73  }
74 }
#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
JSON_PARSE_FUNC(Texture)
Definition: mesh.cc:8