#ifndef VB_MODEL_READER #define VB_MODEL_READER #include"modelReader.h" #include"util.h" #include"mesh.h" #include #include #include #include namespace vb01{ class Model; class Node; class Skeleton; class VbModelReader : public ModelReader{ public: VbModelReader(){} VbModelReader(Model*, std::string); ~VbModelReader(); private: void getObjectBounds(std::map&, std::map&, std::map&); void connectNodes(); void createBones(Skeleton*, std::vector&); void readAnimations(AnimationController*, std::vector&, int); Skeleton* readSkeleton(std::vector&); void readVertices(std::vector&, std::vector&, std::vector&, std::vector&, int); void readFaces(std::vector&, std::vector&, std::vector&, std::vector&, std::vector&, int, Mesh::Vertex*, u32*); void readVertexGroups(std::string*, std::vector&, int); void readShapeKeys(Mesh::Vertex*, std::vector&, std::vector&, std::string*, int, int); void buildMesh(std::vector&); Mesh* readMeshes(std::vector&); void readLights(std::vector&); std::map relationships; std::vector skeletons; std::vector meshes; std::vector nodes; std::string currentAnim = ""; friend class VbModelReaderTest; }; } #endif