diff --git a/bind.go b/bind.go index 497fa5f..284eabd 100644 --- a/bind.go +++ b/bind.go @@ -10247,6 +10247,16 @@ type NodePairContacts struct { h C.WrapNodePairContacts } +// NewNodePairContacts ... +func NewNodePairContacts() *NodePairContacts { + retval := C.WrapConstructorNodePairContacts() + retvalGO := &NodePairContacts{h: retval} + runtime.SetFinalizer(retvalGO, func(cleanval *NodePairContacts) { + C.WrapNodePairContactsFree(cleanval.h) + }) + return retvalGO +} + // Free ... func (pointer *NodePairContacts) Free() { C.WrapNodePairContactsFree(pointer.h) @@ -10371,10 +10381,12 @@ func (pointer *SceneBullet3Physics) StepSimulationWithStepDtMaxStep(displaydt in } // CollectCollisionEvents ... -func (pointer *SceneBullet3Physics) CollectCollisionEvents(scene *Scene, nodepaircontacts *NodePairContacts) { +func (pointer *SceneBullet3Physics) CollectCollisionEvents(scene *Scene) *NodePairContacts { sceneToC := scene.h + nodepaircontacts := NewNodePairContacts() nodepaircontactsToC := nodepaircontacts.h C.WrapCollectCollisionEventsSceneBullet3Physics(pointer.h, sceneToC, nodepaircontactsToC) + return nodepaircontacts } // SyncTransformsFromScene ... @@ -12403,6 +12415,16 @@ func (pointer *FileFilter) SetPattern(v string) { C.WrapFileFilterSetPattern(pointer.h, vToC) } +// NewFileFilter ... +func NewFileFilter() *FileFilter { + retval := C.WrapConstructorFileFilter() + retvalGO := &FileFilter{h: retval} + runtime.SetFinalizer(retvalGO, func(cleanval *FileFilter) { + C.WrapFileFilterFree(cleanval.h) + }) + return retvalGO +} + // Free ... func (pointer *FileFilter) Free() { C.WrapFileFilterFree(pointer.h) diff --git a/linux/libharfang.a b/linux/libharfang.a index a639672..b496ab5 100644 Binary files a/linux/libharfang.a and b/linux/libharfang.a differ diff --git a/linux/libhg_go.a b/linux/libhg_go.a index 1e68f8e..fc9ab65 100644 Binary files a/linux/libhg_go.a and b/linux/libhg_go.a differ diff --git a/windows/libharfang.a b/windows/libharfang.a index ef3e289..2be644f 100644 Binary files a/windows/libharfang.a and b/windows/libharfang.a differ diff --git a/windows/libhg_go.a b/windows/libhg_go.a index e5885d3..b2e88ff 100644 Binary files a/windows/libhg_go.a and b/windows/libhg_go.a differ diff --git a/wrapper.h b/wrapper.h index 9051c50..3288694 100644 --- a/wrapper.h +++ b/wrapper.h @@ -1368,6 +1368,7 @@ extern WrapForwardPipelineAAAConfig WrapConstructorForwardPipelineAAAConfig(); extern void WrapForwardPipelineAAAConfigFree(WrapForwardPipelineAAAConfig); extern void WrapForwardPipelineAAAFree(WrapForwardPipelineAAA); extern void WrapFlipForwardPipelineAAA(WrapForwardPipelineAAA this_, const WrapViewState view_state); +extern WrapNodePairContacts WrapConstructorNodePairContacts(); extern void WrapNodePairContactsFree(WrapNodePairContacts); extern WrapSceneBullet3Physics WrapConstructorSceneBullet3Physics(); extern WrapSceneBullet3Physics WrapConstructorSceneBullet3PhysicsWithThreadCount(int thread_count); @@ -1638,6 +1639,7 @@ extern const char *WrapFileFilterGetName(WrapFileFilter h); extern void WrapFileFilterSetName(WrapFileFilter h, const char *v); extern const char *WrapFileFilterGetPattern(WrapFileFilter h); extern void WrapFileFilterSetPattern(WrapFileFilter h, const char *v); +extern WrapFileFilter WrapConstructorFileFilter(); extern void WrapFileFilterFree(WrapFileFilter); extern WrapFileFilter WrapFileFilterListGetOperator(WrapFileFilterList h, int id); extern void WrapFileFilterListSetOperator(WrapFileFilterList h, int id, WrapFileFilter v);