diff options
author | cutealien <cutealien@dfc29bdd-3216-0410-991c-e03cc46cb475> | 2020-01-03 19:05:16 +0000 |
---|---|---|
committer | cutealien <cutealien@dfc29bdd-3216-0410-991c-e03cc46cb475> | 2020-01-03 19:05:16 +0000 |
commit | 2ae2a551a6290f46734307bbfdafea4b1a2cf2ba (patch) | |
tree | ba2f0b468640e44899fed3df2d4cc58795f4a003 /include/IImageWriter.h | |
download | irrlicht-2ae2a551a6290f46734307bbfdafea4b1a2cf2ba.tar.xz |
Merging r5975 through r6036 from trunk to ogl-es branch.
GLES drivers adapted, but only did make compile-tests.
git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/branches/ogl-es@6038 dfc29bdd-3216-0410-991c-e03cc46cb475
Diffstat (limited to 'include/IImageWriter.h')
-rw-r--r-- | include/IImageWriter.h | 45 |
1 files changed, 45 insertions, 0 deletions
diff --git a/include/IImageWriter.h b/include/IImageWriter.h new file mode 100644 index 0000000..884a488 --- /dev/null +++ b/include/IImageWriter.h @@ -0,0 +1,45 @@ +// Copyright (C) 2002-2012 Nikolaus Gebhardt
+// This file is part of the "Irrlicht Engine".
+// For conditions of distribution and use, see copyright notice in irrlicht.h
+
+#ifndef _I_IMAGE_WRITER_H_INCLUDED__
+#define _I_IMAGE_WRITER_H_INCLUDED__
+
+#include "IReferenceCounted.h"
+#include "irrString.h"
+#include "coreutil.h"
+
+namespace irr
+{
+namespace io
+{
+ class IWriteFile;
+} // end namespace io
+
+namespace video
+{
+ class IImage;
+
+
+//! Interface for writing software image data.
+class IImageWriter : public IReferenceCounted
+{
+public:
+ //! Check if this writer can write a file with the given extension
+ /** \param filename Name of the file to check.
+ \return True if file extension specifies a writable type. */
+ virtual bool isAWriteableFileExtension(const io::path& filename) const = 0;
+
+ //! Write image to file
+ /** \param file File handle to write to.
+ \param image Image to write into file.
+ \param param Writer specific parameter, influencing e.g. quality.
+ \return True if image was successfully written. */
+ virtual bool writeImage(io::IWriteFile *file, IImage *image, u32 param = 0) const = 0;
+};
+
+} // namespace video
+} // namespace irr
+
+#endif // _I_IMAGE_WRITER_H_INCLUDED__
+
|