mirror of
https://github.com/minetest/irrlicht.git
synced 2024-11-15 04:03:48 +01:00
1d58677e18
Removing includes which were not needed by headers Note that if you include those headers directly (instead of including irrlicht.h) you may have to add some new includes now. Thought I generally tried to avoid removing headers where it leads to too much changes in user-code Reason was mainly that IntelliSense in VisualStudio 17.7 added a new feature which shows those unused headers :) Has to be used a bit careful as it doesn't know about defines and other platforms And I only did clean up public headers so far (will probably do some more later or another time) git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@6524 dfc29bdd-3216-0410-991c-e03cc46cb475
44 lines
1.2 KiB
C++
44 lines
1.2 KiB
C++
// 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 IRR_I_IMAGE_WRITER_H_INCLUDED
|
|
#define IRR_I_IMAGE_WRITER_H_INCLUDED
|
|
|
|
#include "IReferenceCounted.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 // IRR_I_IMAGE_WRITER_H_INCLUDED
|