mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-08-26 08:26:50 +00:00
Allow registering window, panel and context menu items with callbacks
This commit is contained in:
@@ -332,6 +332,15 @@ PyObject *PassObjectToPython(const char *type, void *obj)
|
||||
return SWIG_InternalNewPointerObj(obj, t, 0);
|
||||
}
|
||||
|
||||
PyObject *PassNewObjectToPython(const char *type, void *obj)
|
||||
{
|
||||
swig_type_info *t = SWIG_TypeQuery(type);
|
||||
if(t == NULL)
|
||||
return NULL;
|
||||
|
||||
return SWIG_InternalNewPointerObj(obj, t, SWIG_POINTER_OWN);
|
||||
}
|
||||
|
||||
%}
|
||||
|
||||
///////////////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
Reference in New Issue
Block a user