diff options
Diffstat (limited to 'libraries/irrlicht-1.8/include/IMeshLoader.h')
-rw-r--r-- | libraries/irrlicht-1.8/include/IMeshLoader.h | 106 |
1 files changed, 53 insertions, 53 deletions
diff --git a/libraries/irrlicht-1.8/include/IMeshLoader.h b/libraries/irrlicht-1.8/include/IMeshLoader.h index 7f874c0..3955fb4 100644 --- a/libraries/irrlicht-1.8/include/IMeshLoader.h +++ b/libraries/irrlicht-1.8/include/IMeshLoader.h | |||
@@ -1,53 +1,53 @@ | |||
1 | // Copyright (C) 2002-2012 Nikolaus Gebhardt | 1 | // Copyright (C) 2002-2012 Nikolaus Gebhardt |
2 | // This file is part of the "Irrlicht Engine". | 2 | // This file is part of the "Irrlicht Engine". |
3 | // For conditions of distribution and use, see copyright notice in irrlicht.h | 3 | // For conditions of distribution and use, see copyright notice in irrlicht.h |
4 | 4 | ||
5 | #ifndef __I_MESH_LOADER_H_INCLUDED__ | 5 | #ifndef __I_MESH_LOADER_H_INCLUDED__ |
6 | #define __I_MESH_LOADER_H_INCLUDED__ | 6 | #define __I_MESH_LOADER_H_INCLUDED__ |
7 | 7 | ||
8 | #include "IReferenceCounted.h" | 8 | #include "IReferenceCounted.h" |
9 | #include "path.h" | 9 | #include "path.h" |
10 | 10 | ||
11 | namespace irr | 11 | namespace irr |
12 | { | 12 | { |
13 | namespace io | 13 | namespace io |
14 | { | 14 | { |
15 | class IReadFile; | 15 | class IReadFile; |
16 | } // end namespace io | 16 | } // end namespace io |
17 | namespace scene | 17 | namespace scene |
18 | { | 18 | { |
19 | class IAnimatedMesh; | 19 | class IAnimatedMesh; |
20 | 20 | ||
21 | //! Class which is able to load an animated mesh from a file. | 21 | //! Class which is able to load an animated mesh from a file. |
22 | /** If you want Irrlicht be able to load meshes of | 22 | /** If you want Irrlicht be able to load meshes of |
23 | currently unsupported file formats (e.g. .cob), then implement | 23 | currently unsupported file formats (e.g. .cob), then implement |
24 | this and add your new Meshloader with | 24 | this and add your new Meshloader with |
25 | ISceneManager::addExternalMeshLoader() to the engine. */ | 25 | ISceneManager::addExternalMeshLoader() to the engine. */ |
26 | class IMeshLoader : public virtual IReferenceCounted | 26 | class IMeshLoader : public virtual IReferenceCounted |
27 | { | 27 | { |
28 | public: | 28 | public: |
29 | 29 | ||
30 | //! Destructor | 30 | //! Destructor |
31 | virtual ~IMeshLoader() {} | 31 | virtual ~IMeshLoader() {} |
32 | 32 | ||
33 | //! Returns true if the file might be loaded by this class. | 33 | //! Returns true if the file might be loaded by this class. |
34 | /** This decision should be based on the file extension (e.g. ".cob") | 34 | /** This decision should be based on the file extension (e.g. ".cob") |
35 | only. | 35 | only. |
36 | \param filename Name of the file to test. | 36 | \param filename Name of the file to test. |
37 | \return True if the file might be loaded by this class. */ | 37 | \return True if the file might be loaded by this class. */ |
38 | virtual bool isALoadableFileExtension(const io::path& filename) const = 0; | 38 | virtual bool isALoadableFileExtension(const io::path& filename) const = 0; |
39 | 39 | ||
40 | //! Creates/loads an animated mesh from the file. | 40 | //! Creates/loads an animated mesh from the file. |
41 | /** \param file File handler to load the file from. | 41 | /** \param file File handler to load the file from. |
42 | \return Pointer to the created mesh. Returns 0 if loading failed. | 42 | \return Pointer to the created mesh. Returns 0 if loading failed. |
43 | If you no longer need the mesh, you should call IAnimatedMesh::drop(). | 43 | If you no longer need the mesh, you should call IAnimatedMesh::drop(). |
44 | See IReferenceCounted::drop() for more information. */ | 44 | See IReferenceCounted::drop() for more information. */ |
45 | virtual IAnimatedMesh* createMesh(io::IReadFile* file) = 0; | 45 | virtual IAnimatedMesh* createMesh(io::IReadFile* file) = 0; |
46 | }; | 46 | }; |
47 | 47 | ||
48 | 48 | ||
49 | } // end namespace scene | 49 | } // end namespace scene |
50 | } // end namespace irr | 50 | } // end namespace irr |
51 | 51 | ||
52 | #endif | 52 | #endif |
53 | 53 | ||