mirror of
https://github.com/minetest/irrlicht.git
synced 2025-06-28 06:20:21 +02:00
Remove unused IVideoDriver::getTextureByIndex and IVideoDriver::renameTexture
* getTextureByIndex is pretty useless (apart from iterating over all texture, which we don't do), as you can't get an id. * renameTexture is broken anyway: The sort call does nothing because the array is still flagged as sorted.
This commit is contained in:
@ -265,24 +265,10 @@ namespace video
|
||||
IReferenceCounted::drop() for more information. */
|
||||
virtual ITexture* getTexture(io::IReadFile* file) =0;
|
||||
|
||||
//! Returns a texture by index
|
||||
/** \param index: Index of the texture, must be smaller than
|
||||
getTextureCount() Please note that this index might change when
|
||||
adding or removing textures
|
||||
\return Pointer to the texture, or 0 if the texture was not
|
||||
set or index is out of bounds. This pointer should not be
|
||||
dropped. See IReferenceCounted::drop() for more information. */
|
||||
virtual ITexture* getTextureByIndex(u32 index) =0;
|
||||
|
||||
//! Returns amount of textures currently loaded
|
||||
/** \return Amount of textures currently loaded */
|
||||
virtual u32 getTextureCount() const = 0;
|
||||
|
||||
//! Renames a texture
|
||||
/** \param texture Pointer to the texture to rename.
|
||||
\param newName New name for the texture. This should be a unique name. */
|
||||
virtual void renameTexture(ITexture* texture, const io::path& newName) = 0;
|
||||
|
||||
//! Creates an empty texture of specified size.
|
||||
/** \param size: Size of the texture.
|
||||
\param name A name for the texture. Later calls to
|
||||
|
Reference in New Issue
Block a user