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;
|
||
|
}
|