//! Scene\83`\83\83\83\93\83N
struct Scene
{
- Vector3 pos;
- Vector3 lookat;
+ meshio::Vector3 pos;
+ meshio::Vector3 lookat;
float head;
float pitch;
int ortho;
float zoom2;
- Vector3 ambient;
+ meshio::Vector3 ambient;
Scene()
: head(0), pitch(0), ortho(false), zoom2(2)
{}
{
std::string name;
int shader;
- fRGBA color;
+ meshio::fRGBA color;
float diffuse;
float ambient;
float emit;
unsigned int index_count;
unsigned int indices[4];
unsigned int material_index;
- Vector2 uv[4];
- fRGBA color[4];
+ meshio::Vector2 uv[4];
+ meshio::fRGBA color[4];
Face()
: index_count(0), material_index(0)
{
std::string name;
int depth;
int folding;
- Vector3 scale;
- Vector3 rotation;
- Vector3 translation;
+ meshio::Vector3 scale;
+ meshio::Vector3 rotation;
+ meshio::Vector3 translation;
int visible;
int locking;
int shading;
float smoothing;
- Vector3 color;
+ meshio::Vector3 color;
int color_type;
int mirror;
- std::vector<Vector3> vertices;
+ std::vector<meshio::Vector3> vertices;
std::vector<Face> faces;
Object()
std::vector<Material> materials;
std::vector<Object> objects;
- bool read(binary::IReader &reader);
+ bool read(meshio::binary::IReader &reader);
bool read(const char *path);
- bool write(binary::IWriter &writer);
+ bool write(meshio::binary::IWriter &writer);
bool write(const char *path);
};