mirror of
https://github.com/GTAmodding/re3.git
synced 2024-11-17 01:59:00 +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;
|
||
|
}
|