OSDN Git Service

fixed by @santarh
[meshio/meshio.git] / src / mqo.h
index 6324b1b..f468552 100644 (file)
--- a/src/mqo.h
+++ b/src/mqo.h
@@ -47,13 +47,13 @@ namespace meshio {
     //! 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)
       {}
@@ -79,7 +79,7 @@ namespace meshio {
     {
       std::string name;
       int shader;
-      fRGBA color;
+      meshio::fRGBA color;
       float diffuse;
       float ambient;
       float emit;
@@ -121,8 +121,8 @@ namespace meshio {
       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)
       {
@@ -195,18 +195,18 @@ namespace meshio {
       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()
@@ -233,9 +233,9 @@ namespace meshio {
       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);
     };