Euphoria
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
libs
files
src
files
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
{
8
JSON_PARSE_FUNC
(
Texture
)
9
{
10
JSON_BEGIN_OBJECT
();
11
12
JSON_VAL
(String, type);
13
JSON_VAL
(String, path);
14
15
JSON_END_OBJECT
();
16
}
17
18
19
JSON_PARSE_FUNC
(
Material
)
20
{
21
JSON_BEGIN_OBJECT
();
22
23
JSON_VAL
(String, name);
24
JSON_ARRAY
(
Texture
, textures);
25
26
JSON_END_OBJECT
();
27
}
28
29
30
JSON_PARSE_FUNC
(
Mesh
)
31
{
32
JSON_BEGIN_OBJECT
();
33
34
JSON_ARRAY
(
Material
, materials);
35
JSON_OPT_VAL
(Bool, diffuse_and_ambient_are_same);
36
37
JSON_END_OBJECT
();
38
}
39
40
41
JSON_PARSE_FUNC
(
Extension
)
42
{
43
JSON_BEGIN_OBJECT
();
44
45
JSON_VAL
(String, old_ext);
46
JSON_VAL
(String, new_ext);
47
48
JSON_END_OBJECT
();
49
}
50
51
52
JSON_PARSE_FUNC
(
Filename
)
53
{
54
JSON_BEGIN_OBJECT
();
55
56
JSON_VAL
(String, old_file);
57
JSON_VAL
(String, new_file);
58
59
JSON_END_OBJECT
();
60
}
61
62
63
JSON_PARSE_FUNC
(
Folder
)
64
{
65
JSON_BEGIN_OBJECT
();
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
72
JSON_END_OBJECT
();
73
}
74
}
mesh.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::mesh
Definition:
mesh.cc:7
eu::files::mesh::JSON_PARSE_FUNC
JSON_PARSE_FUNC(Texture)
Definition:
mesh.cc:8
eu::files::mesh::Extension
Definition:
mesh.h:27
eu::files::mesh::Filename
Definition:
mesh.h:33
eu::files::mesh::Folder
Definition:
mesh.h:39
eu::files::mesh::Material
Definition:
mesh.h:15
eu::files::mesh::Mesh
Definition:
mesh.h:21
eu::files::mesh::Texture
Definition:
mesh.h:9