Euphoria
mesh.h
Go to the documentation of this file.
1 #pragma once
2 
3 #include "io/json.h"
4 
5 
6 namespace eu::files::mesh
7 {
8  struct Texture
9  {
10  std::string type;
11  std::string path;
12  };
13 
14  struct Material
15  {
16  std::string name;
17  std::vector<Texture> textures;
18  };
19 
20  struct Mesh
21  {
22  std::vector<Material> materials;
24  };
25 
26  struct Extension
27  {
28  std::string old_ext;
29  std::string new_ext;
30  };
31 
32  struct Filename
33  {
34  std::string old_file;
35  std::string new_file;
36  };
37 
38  struct Folder
39  {
40  std::string texture_override;
41  std::vector<Extension> change_extensions;
42  std::vector<Filename> change_filenames;
43  float scale = 1.0f;
44  };
45 
48 }
JSON_PARSE_FUNC(Texture)
Definition: mesh.cc:8
std::string old_ext
Definition: mesh.h:28
std::string new_ext
Definition: mesh.h:29
std::string new_file
Definition: mesh.h:35
std::string old_file
Definition: mesh.h:34
std::vector< Extension > change_extensions
Definition: mesh.h:41
std::vector< Filename > change_filenames
Definition: mesh.h:42
std::string texture_override
Definition: mesh.h:40
std::vector< Texture > textures
Definition: mesh.h:17
std::string name
Definition: mesh.h:16
std::vector< Material > materials
Definition: mesh.h:22
bool diffuse_and_ambient_are_same
Definition: mesh.h:23
std::string path
Definition: mesh.h:11
std::string type
Definition: mesh.h:10