ezEngine  Milestone 9
ezDdsFileFormat Class Reference
Inheritance diagram for ezDdsFileFormat:

Public Member Functions

virtual ezResult ReadImage (ezStreamReader &stream, ezImage &image, ezLogInterface *pLog, const char *szFileExtension) const override
 Reads the data from the given stream and creates the image from it. Errors are written to the given ezLogInterface.
 
virtual ezResult WriteImage (ezStreamWriter &stream, const ezImageView &image, ezLogInterface *pLog, const char *szFileExtension) const override
 Writes the data to the given stream in this format. Errors are written to the given ezLogInterface. More...
 
virtual bool CanReadFileType (const char *szExtension) const override
 Should return true, if files with the given extension can be read.
 
virtual bool CanWriteFileType (const char *szExtension) const override
 Should return true, if files with the given extension can be written.
 
- Public Member Functions inherited from ezImageFileFormat
 EZ_DECLARE_ENUMERABLE_CLASS (ezImageFileFormat)
 

Additional Inherited Members

- Static Public Member Functions inherited from ezImageFileFormat
static ezImageFileFormatGetReaderFormat (const char *extension)
 Returns an ezImageFileFormat that can read the given extension. Returns nullptr if there is no appropriate ezImageFileFormat.
 
static ezImageFileFormatGetWriterFormat (const char *extension)
 Returns an ezImageFileFormat that can write the given extension. Returns nullptr if there is no appropriate ezImageFileFormat.
 
- Static Public Member Functions inherited from ezNoBase
static const ezRTTIGetStaticRTTI ()
 
- Protected Attributes inherited from ezEnumerable< ezImageFileFormat >
ezEnumerablem_pNextInstance
 

Member Function Documentation

◆ WriteImage()

ezResult ezDdsFileFormat::WriteImage ( ezStreamWriter stream,
const ezImageView image,
ezLogInterface pLog,
const char *  szFileExtension 
) const
overridevirtual

Writes the data to the given stream in this format. Errors are written to the given ezLogInterface.

Todo:
sub-image size

Implements ezImageFileFormat.


The documentation for this class was generated from the following files: