NewtonWorldSetDestructorCallBack

From Newton Wiki
Revision as of 08:02, 10 June 2019 by WikiSysop (talk | contribs) (1 revision imported)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

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