Saga3D API Documentation  1.0-RC4
IMeshLoader.h
Go to the documentation of this file.
1 #ifndef __I_MESH_LOADER_H_INCLUDED__
2 #define __I_MESH_LOADER_H_INCLUDED__
3 
4 #include <string>
5 #include <memory>
6 
7 namespace saga
8 {
9 namespace scene
10 {
11 class IMesh;
12 
14 
19 {
20 public:
23 
25  virtual ~IMeshLoader() { }
26 
28 
32  virtual bool isSupportedExtension(const std::string& filename) const = 0;
33 
35 
39  virtual std::shared_ptr<IMesh> createMesh(void* data, const std::size_t size, const std::string& extension) = 0;
40 };
41 
42 } // namespace scene
43 } // namespace saga
44 
45 #endif // __I_MESH_LOADER_H_INCLUDED__
saga::scene::IMeshLoader
Class which is able to load a static/animated mesh from a file.
Definition: IMeshLoader.h:18
saga::scene::IMeshLoader::~IMeshLoader
virtual ~IMeshLoader()
Destructor.
Definition: IMeshLoader.h:25
saga::scene::IMeshLoader::IMeshLoader
IMeshLoader()
Constructor.
Definition: IMeshLoader.h:22
saga::scene::IMeshLoader::createMesh
virtual std::shared_ptr< IMesh > createMesh(void *data, const std::size_t size, const std::string &extension)=0
Loads a mesh from the file.
saga::scene::IMeshLoader::isSupportedExtension
virtual bool isSupportedExtension(const std::string &filename) const =0
Returns true if the file might be loaded by this class.
saga
Definition: aabbox3d.h:11