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