CMakeLists.txt update, RagePhoto add data() function
RagePhoto::data() returns internal RagePhotoData object
This commit is contained in:
parent
930897cf97
commit
6a50ca75a1
3 changed files with 30 additions and 21 deletions
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue