Public Member Functions | Static Public Member Functions | List of all members
ImageData Class Referenceabstract

Public Member Functions

virtual int getWidth () const =0
virtual int getHeight () const =0
virtual const uint8_t * pixels () const =0
 RGBA values ordered row-major.

Static Public Member Functions

static std::unique_ptr< ImageDataload (const std::string &filename)
 Passing a filename will load the specified filename. More...

Detailed Description

Definition at line 13 of file ImageData.hpp.

Member Function Documentation

◆ load()

static std::unique_ptr<ImageData> load ( const std::string filename)

Passing a filename will load the specified filename.

Currently only WebP files are supported (WIP).

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