summaryrefslogblamecommitdiffstats
path: root/src/RwHelper.cpp
blob: c8782f9ed27bb0e1a42bbe4771536de2dacb6e85 (plain) (tree)


















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