Difference between revisions of "NewtonWorldSetDestructorCallBack"

From Newton Wiki
Jump to: navigation, search
 
m (1 revision imported)
 
(No difference)

Latest revision as of 08:02, 10 June 2019

NewtonWorldSetDestructorCallBack

 void NewtonWorldSetDestructorCallback (const NewtonWorld* const newtonWorld, NewtonWorldDestructorCallback destructor)

Usage

Assign an event function which will be called when the given Newton world is destroyed.

Parameters

  • const NewtonWorld* newtonWorld - pointer to the Newton world.
  • NewtonDestroyWorld destructor - pointer to a callback function used to handle the destruction of the Newton world.

Return

  • Nothing.

Description

Assign an event function which will be called when the given Newton world is destroyed.

The event handler callback function receives a pointer to the Newton world as parameter.

Remarks

Added since Newton 2.0

See also

NewtonWorldSetDestructorCallback NewtonWorldGetUserData