mirror of
https://github.com/devZoGok/vb01.git
synced 2026-08-27 03:53:24 +00:00
44 lines
1.1 KiB
C++
44 lines
1.1 KiB
C++
#ifndef VB_MODEL_READER
|
|
#define VB_MODEL_READER
|
|
|
|
#include"modelReader.h"
|
|
#include"util.h"
|
|
#include"mesh.h"
|
|
#include<string>
|
|
#include<vector>
|
|
#include<iterator>
|
|
#include<map>
|
|
|
|
namespace vb01{
|
|
class Model;
|
|
class Node;
|
|
class Skeleton;
|
|
|
|
class VbModelReader : public ModelReader{
|
|
public:
|
|
VbModelReader(Model*, std::string);
|
|
~VbModelReader();
|
|
private:
|
|
void getObjectBounds(std::map<int, int>&, std::map<int, int>&, std::map<int, int>&);
|
|
void connectNodes();
|
|
|
|
void readBones(Skeleton*, int, int);
|
|
void readAnimations(Skeleton*, int, int);
|
|
void readSkeletons(int, int);
|
|
void readVertices(std::vector<Vector3>&, std::vector<Vector3>&, std::vector<float>&, int, int, int);
|
|
void readFaces(std::vector<Vector3>&, std::vector<Vector3>&, std::vector<float>&, int, int, int, int, Mesh::Vertex*, u32*);
|
|
void readVertexGroups(std::string*, int, int);
|
|
void readShapeKeys(int, int);
|
|
void readMeshes(int, int);
|
|
void readLights(int, int);
|
|
|
|
std::vector<std::string> relationships;
|
|
std::vector<Skeleton*> skeletons;
|
|
std::vector<Mesh*> meshes;
|
|
std::vector<Node*> nodes;
|
|
};
|
|
}
|
|
|
|
#endif
|
|
|