ObjFile.h 502 B

1234567891011121314151617181920212223242526
  1. #pragma once
  2. #include "ReferenceCounter.h"
  3. #include "Array.h"
  4. #include "Datei.h"
  5. #include "Vec3.h"
  6. namespace Framework
  7. {
  8. class Model3DData;
  9. class ObjFile : public ReferenceCounter
  10. {
  11. private:
  12. Datei file;
  13. RCArray<Text> objectNames;
  14. Vec3<int> parseIndex(Text* s);
  15. void readModel(Model3DData* zTarget);
  16. public:
  17. DLLEXPORT ObjFile(const char* path);
  18. DLLEXPORT bool loadModel(const char* name, Model3DData* zTarget);
  19. DLLEXPORT const RCArray<Text>& getContainedModelNames() const;
  20. };
  21. }