CMakeLists.txt update, RagePhoto add data() function

RagePhoto::data() returns internal RagePhotoData object
This commit is contained in:
Syping 2021-12-14 03:15:52 +01:00
parent 930897cf97
commit 6a50ca75a1
3 changed files with 30 additions and 21 deletions

View file

@ -116,6 +116,11 @@ void RagePhoto::clear()
setBufferDefault();
}
RagePhotoData* RagePhoto::data()
{
return &m_data;
}
bool RagePhoto::load(const char *data, size_t length)
{
#ifdef RAGEPHOTO_BENCHMARK

View file

@ -98,6 +98,7 @@ public:
RagePhoto();
~RagePhoto();
void clear(); /**< Resets the RagePhoto instance to default values. */
RagePhotoData* data(); /**< Returns the internal RagePhotoData object. */
/** Loads a Photo from a const char*.
* \param data Photo data
* \param size Photo data size