X-Git-Url: http://git.osdn.jp/view?a=blobdiff_plain;f=include%2Fmqo.h;h=b64c7f6eed13c02e5bb67185aba1703879d2ec50;hb=8093d81853548bc573586ee41f84f26971bc8acb;hp=a7c67819af792073e464b8e4eddfac8790f8d4ca;hpb=2e272c8234ed76c70119a71a8371c4c48b8d7a33;p=meshio%2Fmeshio.git diff --git a/include/mqo.h b/include/mqo.h index a7c6781..b64c7f6 100644 --- a/include/mqo.h +++ b/include/mqo.h @@ -97,6 +97,10 @@ struct Material : shader(0), diffuse(1), ambient(0), emmit(0), specular(0), power(0), vcol(0) {} + + // for python3 unicode + std::wstring getName()const; + std::wstring getTexture()const; }; inline std::ostream &operator<<(std::ostream &os, const Material &rhs) { @@ -215,8 +219,11 @@ struct Object std::vector faces; Object() - : mirror(0) + : depth(0), folding(0), visible(1), locking(0), shading(0), + smoothing(60.0f), color_type(0), mirror(0) {} + + std::wstring getName()const; }; inline std::ostream &operator<<(std::ostream &os, const Object &rhs) { @@ -241,7 +248,11 @@ struct IO bool read(binary::IReader &reader); bool read(const char *path); - bool write(std::ostream &os); +//#ifdef _WIN32 + bool read(const wchar_t *path); +//#endif + bool write(binary::IWriter &writer); + bool write(const char *path); }; } // namespace mqo