Castor3D 0.16.0
Multiplatform 3D engine
Public Member Functions | List of all members
castor::ImageLoaderImpl Class Referenceabstract

#include <ImageLoader.hpp>

Inheritance diagram for castor::ImageLoaderImpl:
Inheritance graph
[legend]
Collaboration diagram for castor::ImageLoaderImpl:
Collaboration graph
[legend]

Public Member Functions

virtual ~ImageLoaderImpl () noexcept=default
 
virtual CU_API ImageLayout load (String const &imageFormat, uint8_t const *data, uint32_t size, PxBufferBaseUPtr &buffer) const =0
 Loads an image file data.
 
CU_API Image load (String const &name, Path const &imagePath, String const &imageFormat, uint8_t const *data, uint32_t size) const
 Loads an image file data.
 
CU_API Image load (String const &name, String const &imageFormat, uint8_t const *data, uint32_t size) const
 Loads an image file data.
 
CU_API Image load (String const &name, Path const &imagePath, uint8_t const *data, uint32_t size) const
 Loads an image file data.
 

Additional Inherited Members

- Protected Member Functions inherited from castor::NonMovable
 NonMovable ()=default
 Constructor.
 
 ~NonMovable () noexcept=default
 Destructor.
 

Constructor & Destructor Documentation

◆ ~ImageLoaderImpl()

virtual castor::ImageLoaderImpl::~ImageLoaderImpl ( )
virtualdefaultnoexcept

Member Function Documentation

◆ load() [1/4]

virtual CU_API ImageLayout castor::ImageLoaderImpl::load ( String const & imageFormat,
uint8_t const * data,
uint32_t size,
PxBufferBaseUPtr & buffer ) const
pure virtual

Loads an image file data.

Parameters
[in]imageFormatThe image format, loader wise.
[in]dataThe image data.
[in]sizeThe image data size.
[out]bufferReceives the buffer data.
Returns
The image layout.

Implemented in castor::DataImageLoader, castor::ExrImageLoader, castor::FreeImageLoader, castor::GliImageLoader, castor::StbImageLoader, and castor::XpmImageLoader.

◆ load() [2/4]

CU_API Image castor::ImageLoaderImpl::load ( String const & name,
Path const & imagePath,
String const & imageFormat,
uint8_t const * data,
uint32_t size ) const

Loads an image file data.

Parameters
[in]nameThe image name.
[in]imagePathPath to the image file.
[in]imageFormatThe image format, loader wise.
[in]dataThe image data.
[in]sizeThe image data size.
Returns
The image.

◆ load() [3/4]

CU_API Image castor::ImageLoaderImpl::load ( String const & name,
Path const & imagePath,
uint8_t const * data,
uint32_t size ) const

Loads an image file data.

Parameters
[in]nameThe image name.
[in]imagePathPath to the image file.
[in]dataThe image data.
[in]sizeThe image data size.
Returns
The image.

◆ load() [4/4]

CU_API Image castor::ImageLoaderImpl::load ( String const & name,
String const & imageFormat,
uint8_t const * data,
uint32_t size ) const

Loads an image file data.

Parameters
[in]nameThe image name.
[in]imageFormatThe image format, loader wise.
[in]dataThe image data.
[in]sizeThe image data size.
Returns
The image.

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