Define FLAMEGPU_HOST_FUNCTION_DECL

Define Documentation

FLAMEGPU_HOST_FUNCTION_DECL(funcName)

Macro for defining host functions with the correct input. Ugly, but has same usage as device functions

Saves users from manually defining host functions, e.g.:

// User Implemented host condition behaviour
void SomeHostFunction_impl(flamegpu::HostAPI* FLAMEGPU) {
    // do something
}
flamegpu::FLAMEGPU_HOST_FUNCTION_POINTER SomeHostFunction = SomeHostFunction_impl;