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

Public Member Functions

 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
 
virtual void printErrorMsg () 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

virtual bool pload (int expected_channels)
 

Protected Attributes

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
 

Additional Inherited Members

- Public Types inherited from Image
enum  ImageWriteFormat { PNG, HDR, JPEG }
 
- Public Attributes inherited from Image
uint8_t * data = nullptr
 

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