diff options
author | hecks <42101236+hecktest@users.noreply.github.com> | 2021-07-23 16:23:44 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-07-23 16:23:44 +0200 |
commit | 4ab3de3bab13c18bc0eed6bac565be3b80ebac10 (patch) | |
tree | 54274982be545669f28b2849f5f94aa1c37f39af /include/IMeshLoader.h | |
parent | dc2246dae75dda77d5a9be7f810930b5dd9b1ed8 (diff) | |
download | irrlicht-4ab3de3bab13c18bc0eed6bac565be3b80ebac10.tar.xz |
Delete lots of unused features (#48)
Diffstat (limited to 'include/IMeshLoader.h')
-rw-r--r-- | include/IMeshLoader.h | 38 |
1 files changed, 2 insertions, 36 deletions
diff --git a/include/IMeshLoader.h b/include/IMeshLoader.h index f81f330..91b07b9 100644 --- a/include/IMeshLoader.h +++ b/include/IMeshLoader.h @@ -7,7 +7,6 @@ #include "IReferenceCounted.h"
#include "path.h"
-#include "IMeshTextureLoader.h"
namespace irr
{
@@ -29,14 +28,10 @@ class IMeshLoader : public virtual IReferenceCounted public:
//! Constructor
- IMeshLoader() : TextureLoader(0) {}
+ IMeshLoader() {}
//! Destructor
- virtual ~IMeshLoader()
- {
- if ( TextureLoader )
- TextureLoader->drop();
- }
+ virtual ~IMeshLoader() {}
//! Returns true if the file might be loaded by this class.
/** This decision should be based on the file extension (e.g. ".cob")
@@ -51,35 +46,6 @@ public: If you no longer need the mesh, you should call IAnimatedMesh::drop().
See IReferenceCounted::drop() for more information. */
virtual IAnimatedMesh* createMesh(io::IReadFile* file) = 0;
-
- //! Set a new texture loader which this meshloader can use when searching for textures.
- /** NOTE: Not all meshloaders do support this interface. Meshloaders which
- support it will return a non-null value in getMeshTextureLoader from the start. Setting a
- texture-loader to a meshloader which doesn't support it won't help.
- \param textureLoader The textureloader to use. When set to NULL the mesh will not load any textures.
- */
- virtual void setMeshTextureLoader(IMeshTextureLoader* textureLoader)
- {
- if ( textureLoader != TextureLoader )
- {
- if ( textureLoader )
- textureLoader->grab();
- if ( TextureLoader )
- TextureLoader->drop();
- TextureLoader = textureLoader;
- }
- }
-
- //! Get the texture loader used when this meshloader searches for textures.
- /** NOTE: not all meshloaders support this interface so this can return NULL.
- */
- virtual IMeshTextureLoader* getMeshTextureLoader() const
- {
- return TextureLoader;
- }
-
-protected:
- IMeshTextureLoader* TextureLoader;
};
|