NewtonWorldAddListener

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

NewtonWorldAddListener

void* NewtonWorldAddListener (const NewtonWorld* const newtonWorld, const char* const nameId, void* const listenerUserData)

Usage

Creates a world listener for use with callbacks. See:

Parameters

  • const NewtonWorld* const newtonWorld - pointer to instance of newton world to which this listener will belong to.
  • const char* const nameId - name of the listener
  • void* const listenerUserData - user-defined pointer, that is availible in called callbacks, typically used as pointer to instance of your object that will handle the callbacks.

Return

  • pointer to listener

Description

See also

NewtonWorldAddListener, NewtonWorldGetListenerUserData, NewtonWorldListenerDebug, NewtonWorldListenerGetBodyDestroyCallback, NewtonWorldListenerSetBodyDestroyCallback, NewtonWorldListenerSetDebugCallback, NewtonWorldListenerSetDestroctorCallback, NewtonWorldListenerSetPostUpdateCallback, NewtonWorldListenerSetPreUpdateCallback