Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008 #ifndef OBJIO_HPP_
00009 #define OBJIO_HPP_
00010
00011 namespace lssr
00012 {
00013
00019 template<typename CoordType, typename IndexType>
00020 class ObjIO
00021 {
00022 public:
00023 ObjIO();
00024
00025 void write(string filename);
00026 void setVertexArray(CoordType* array, size_t count);
00027 void setNormalArray(CoordType* array, size_t count);
00028 void setIndexArray(IndexType* array, size_t count);
00029
00030 private:
00031 CoordType* m_vertices;
00032 CoordType* m_normals;
00033 IndexType* m_indices;
00034
00035 size_t m_faceCount;
00036 size_t m_vertexCount;
00037
00038 };
00039
00040 }
00041
00042 #include "ObjIO.tcc"
00043
00044 #endif