re3/src/RwHelper.cpp

20 lines
279 B
C++
Raw Normal View History

2019-05-15 14:52:37 +00:00
#include "common.h"
RwObject*
GetFirstObjectCallback(RwObject *object, void *data)
{
*(RwObject**)data = object;
return nil;
}
RwObject*
GetFirstObject(RwFrame *frame)
{
RwObject *obj;
obj = nil;
RwFrameForAllObjects(frame, GetFirstObjectCallback, &obj);
return obj;
}