diff options
author | numzero <numzer0@yandex.ru> | 2023-04-08 01:36:43 +0300 |
---|---|---|
committer | sfan5 <sfan5@live.de> | 2023-04-08 19:07:16 +0200 |
commit | 5eb607f86fa514c24da80650a507889fa0c871e9 (patch) | |
tree | 020b478416489bae6145627d6aa27e4e09af738d /include/IVideoDriver.h | |
parent | fc0440ff8900aeb71af7ce3bc6d44464e0cca727 (diff) | |
download | irrlicht-5eb607f86fa514c24da80650a507889fa0c871e9.tar.xz |
Drop createImagesFromFile in favor of createImageFromFile
Diffstat (limited to 'include/IVideoDriver.h')
-rw-r--r-- | include/IVideoDriver.h | 42 |
1 files changed, 2 insertions, 40 deletions
diff --git a/include/IVideoDriver.h b/include/IVideoDriver.h index f93d761..ef8e38e 100644 --- a/include/IVideoDriver.h +++ b/include/IVideoDriver.h @@ -959,28 +959,6 @@ namespace video \return The current texture creation flag enabled mode. */
virtual bool getTextureCreationFlag(E_TEXTURE_CREATION_FLAG flag) const =0;
- //! Creates a software images from a file.
- /** No hardware texture will be created for those images. This
- method is useful for example if you want to read a heightmap
- for a terrain renderer.
- \param filename Name of the file from which the images are created.
- \param type Pointer to E_TEXTURE_TYPE where a recommended type of the texture will be stored.
- \return The array of created images.
- If you no longer need those images, you should call IImage::drop() on each of them.
- See IReferenceCounted::drop() for more information. */
- virtual core::array<IImage*> createImagesFromFile(const io::path& filename, E_TEXTURE_TYPE* type = 0) = 0;
-
- //! Creates a software images from a file.
- /** No hardware texture will be created for those images. This
- method is useful for example if you want to read a heightmap
- for a terrain renderer.
- \param file File from which the image is created.
- \param type Pointer to E_TEXTURE_TYPE where a recommended type of the texture will be stored.
- \return The array of created images.
- If you no longer need those images, you should call IImage::drop() on each of them.
- See IReferenceCounted::drop() for more information. */
- virtual core::array<IImage*> createImagesFromFile(io::IReadFile* file, E_TEXTURE_TYPE* type = 0) = 0;
-
//! Creates a software image from a file.
/** No hardware texture will be created for this image. This
method is useful for example if you want to read a heightmap
@@ -990,15 +968,7 @@ namespace video \return The created image.
If you no longer need the image, you should call IImage::drop().
See IReferenceCounted::drop() for more information. */
- IImage* createImageFromFile(const io::path& filename)
- {
- core::array<IImage*> imageArray = createImagesFromFile(filename);
-
- for (u32 i = 1; i < imageArray.size(); ++i)
- imageArray[i]->drop();
-
- return (imageArray.size() > 0) ? imageArray[0] : 0;
- }
+ virtual IImage* createImageFromFile(const io::path& filename) = 0;
//! Creates a software image from a file.
/** No hardware texture will be created for this image. This
@@ -1008,15 +978,7 @@ namespace video \return The created image.
If you no longer need the image, you should call IImage::drop().
See IReferenceCounted::drop() for more information. */
- IImage* createImageFromFile(io::IReadFile* file)
- {
- core::array<IImage*> imageArray = createImagesFromFile(file);
-
- for (u32 i = 1; i < imageArray.size(); ++i)
- imageArray[i]->drop();
-
- return (imageArray.size() > 0) ? imageArray[0] : 0;
- }
+ virtual IImage* createImageFromFile(io::IReadFile* file) = 0;
//! Writes the provided image to a file.
/** Requires that there is a suitable image writer registered
|