X-Git-Url: https://git.lizzy.rs/?a=blobdiff_plain;f=include%2FIMeshLoader.h;h=91b07b946ecef5d3a4167f742c0dada84591ea02;hb=a549d0bfed02801d642ef281697f8ac7c3dbc2cf;hp=f81f33072e839f55342780fc1bb07176fe5f1a3d;hpb=2ae2a551a6290f46734307bbfdafea4b1a2cf2ba;p=irrlicht.git 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; };