diff options
author | Treeki <treeki@gmail.com> | 2011-03-12 23:17:12 +0100 |
---|---|---|
committer | Treeki <treeki@gmail.com> | 2011-03-12 23:17:12 +0100 |
commit | 7d4e4c0b34a613dd3c0220475ae4e448197522c1 (patch) | |
tree | 4f5cee367de3fdef4f9a7c84af59ffe76a2bb1c3 /MapTool/t3d/objreader.h | |
download | kamek-7d4e4c0b34a613dd3c0220475ae4e448197522c1.tar.gz kamek-7d4e4c0b34a613dd3c0220475ae4e448197522c1.zip |
initial commit. now I can start playing with stuff!
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 |