#ifndef _VBOFORMATCONVERTER_H #define _VBOFORMATCONVERTER_H #include "SimpleVec.h" #include #include typedef std::vector VertexArray; typedef std::pair Texcoord; class ogzstream; /** Converts obj format into objects readable by our format */ class VboFormatConverter { public: VboFormatConverter(); bool Convert(const std::string &inputFilename, const std::string &outputFilename); //const std::string textureFilename) const; ~VboFormatConverter(); protected: struct Geometry { SimpleVec *mVertices; SimpleVec *mNormals; SimpleVec *mTangents; Texcoord *mTexcoords; int mVertexCount; int mTexcoordCount; }; void WriteGeometry(ogzstream &str, Geometry *geom); bool ReadFile(const std::string &inputFilename); bool WriteFile(const std::string &outputFilename); std::vector mGeometry; int mNumShapes; }; #endif