TDME2  1.9.200
ModelReader.h
Go to the documentation of this file.
1 #pragma once
2 
3 #include <string>
4 #include <vector>
5 
6 #include <tdme/tdme.h>
13 
14 using std::string;
15 using std::vector;
16 
20 
21 /**
22  * Model reader class
23  * @author Andreas Drewke
24  */
26 {
27 private:
28  STATIC_DLL_IMPEXT static vector<string> extensions;
29 public:
30  /**
31  * Get supported model extensions
32  */
33  static const vector<string>& getModelExtensions();
34 
35  /**
36  * Reads a model
37  * @param pathName path name
38  * @param fileName file name
39  * @param useBC7TextureCompression use BC7 texture compression
40  * @throws tdme::engine::fileio::models::ModelFileIOException
41  * @throws tdme::os::filesystem::FileSystemException
42  * @return texture data instance or null
43  */
44  static Model* read(const string& pathName, const string& fileName, bool useBC7TextureCompression = true);
45 };
static const vector< string > & getModelExtensions()
Get supported model extensions.
Definition: ModelReader.cpp:42
static STATIC_DLL_IMPEXT vector< string > extensions
Definition: ModelReader.h:28
static Model * read(const string &pathName, const string &fileName, bool useBC7TextureCompression=true)
Reads a model.
Definition: ModelReader.cpp:46
Representation of a 3D model.
Definition: Model.h:35
#define STATIC_DLL_IMPEXT
Definition: tdme.h:15