AnimEngine
Public Member Functions | Protected Member Functions | List of all members
ExternalImageHDR Class Reference
Inheritance diagram for ExternalImageHDR:
Inheritance graph
[legend]
Collaboration diagram for ExternalImageHDR:
Collaboration graph
[legend]

Public Member Functions

 ExternalImageHDR (string path, bool delay_load=false, int expected_channels=-1)
 
 ExternalImageHDR (const char *const path, bool delay_load=false, int expected_channels=-1)
 
void printErrorMsg () const override
 
- Public Member Functions inherited from ExternalImage
 ExternalImage (const string &path, bool delay_load=false, int expected_channels=-1)
 
virtual void _free_image_data ()
 
bool load (int expected_channels=-1)
 
const string & getPath () const
 
const bool isLoaded () const
 
const char *const getErrorMsg () const
 
- Public Member Functions inherited from Image
 Image (void *const data, int w, int h, int channels, size_t component_size=sizeof(uint8_t))
 
 Image (int w, int h, int channels, size_t component_size=sizeof(uint8_t))
 
int getWidth () const
 
int getHeight () const
 
int getChannels () const
 
size_t getComponentSize () const
 
size_t getTotalDataSize () const
 
int writeFile (const string &path) const
 
int writeFile (const char *path) const
 
int writeFileFormat (const string &path, ImageWriteFormat format) const
 
int writeFileFormat (const char *path, ImageWriteFormat format) const
 

Protected Member Functions

bool pload (int expected_channels) override
 

Additional Inherited Members

- Public Types inherited from Image
enum  ImageWriteFormat { PNG, HDR, JPEG }
 
- Public Attributes inherited from Image
uint8_t * data = nullptr
 
- Protected Attributes inherited from ExternalImage
bool loaded = false
 
string path
 
const char * stb_fail_reason = nullptr
 
- Protected Attributes inherited from Image
int channels
 
int width
 
int height
 
size_t component_size
 

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