diff options
Diffstat (limited to '')
-rw-r--r-- | MapTool/t3d/objreader.h | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/MapTool/t3d/objreader.h b/MapTool/t3d/objreader.h new file mode 100644 index 0000000..6e518e8 --- /dev/null +++ b/MapTool/t3d/objreader.h @@ -0,0 +1,30 @@ +#ifndef T3DOBJREADER_H +#define T3DOBJREADER_H + +#include <QtCore/QList> +#include <QtCore/QVector> +#include <QtCore/QString> +#include <QtCore/QStringList> +#include <QtCore/QHash> +#include "model.h" + +class T3DObjReader { +private: + T3DModel *m_model; + T3DMesh *m_currentMesh; + + QVector<Vec> known_vertices; + QVector<Vec2> known_texcoords; + QVector<Vec> known_normals; + +public: + T3DObjReader(T3DModel &model); + + void parseLine(QString line); + + T3DModel *model() { return m_model; } + + QHash<QString, T3DMaterial *> materials; +}; + +#endif // T3DOBJREADER_H |