Class HostFunctionCallback

Class Documentation

class flamegpu::HostFunctionCallback

Virtual Callback class which allows a user to create a callback function to be used as a host function in either step, exit or init functions. This is mostly required to allow swig wrapping of host functions in a target language

Public Functions

virtual void run(HostAPI*) = 0

This is the method that will be implemented by a user in Python to define their host function

inline virtual ~HostFunctionCallback()

Virtual destructor for correct inheritance behaviour