\r
#include "IReferenceCounted.h"\r
#include "path.h"\r
-#include "IMeshTextureLoader.h"\r
\r
namespace irr\r
{\r
public:\r
\r
//! Constructor\r
- IMeshLoader() : TextureLoader(0) {}\r
+ IMeshLoader() {}\r
\r
//! Destructor\r
- virtual ~IMeshLoader()\r
- {\r
- if ( TextureLoader )\r
- TextureLoader->drop();\r
- }\r
+ virtual ~IMeshLoader() {}\r
\r
//! Returns true if the file might be loaded by this class.\r
/** This decision should be based on the file extension (e.g. ".cob")\r
If you no longer need the mesh, you should call IAnimatedMesh::drop().\r
See IReferenceCounted::drop() for more information. */\r
virtual IAnimatedMesh* createMesh(io::IReadFile* file) = 0;\r
-\r
- //! Set a new texture loader which this meshloader can use when searching for textures.\r
- /** NOTE: Not all meshloaders do support this interface. Meshloaders which\r
- support it will return a non-null value in getMeshTextureLoader from the start. Setting a\r
- texture-loader to a meshloader which doesn't support it won't help.\r
- \param textureLoader The textureloader to use. When set to NULL the mesh will not load any textures.\r
- */\r
- virtual void setMeshTextureLoader(IMeshTextureLoader* textureLoader)\r
- {\r
- if ( textureLoader != TextureLoader )\r
- {\r
- if ( textureLoader )\r
- textureLoader->grab();\r
- if ( TextureLoader )\r
- TextureLoader->drop();\r
- TextureLoader = textureLoader;\r
- }\r
- }\r
-\r
- //! Get the texture loader used when this meshloader searches for textures.\r
- /** NOTE: not all meshloaders support this interface so this can return NULL.\r
- */\r
- virtual IMeshTextureLoader* getMeshTextureLoader() const\r
- {\r
- return TextureLoader;\r
- }\r
-\r
-protected:\r
- IMeshTextureLoader* TextureLoader;\r
};\r
\r
\r