]> git.lizzy.rs Git - irrlicht.git/blobdiff - include/IMeshLoader.h
Add setRelativeMode for SDL driver (#123)
[irrlicht.git] / include / IMeshLoader.h
index f81f33072e839f55342780fc1bb07176fe5f1a3d..91b07b946ecef5d3a4167f742c0dada84591ea02 100644 (file)
@@ -7,7 +7,6 @@
 \r
 #include "IReferenceCounted.h"\r
 #include "path.h"\r
-#include "IMeshTextureLoader.h"\r
 \r
 namespace irr\r
 {\r
@@ -29,14 +28,10 @@ class IMeshLoader : public virtual IReferenceCounted
 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
@@ -51,35 +46,6 @@ public:
        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