mirror of
https://github.com/halpz/re3.git
synced 2025-01-07 20:15:27 +00:00
20 lines
279 B
C++
20 lines
279 B
C++
|
#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;
|
||
|
}
|