Type Definition steam_audio::ffi::IPLAnyHitCallback [] [src]

type IPLAnyHitCallback = Option<unsafe extern "C" fn(_: *const IPLfloat32, _: *const IPLfloat32, _: IPLfloat32, _: IPLfloat32, _: *mut IPLint32, _: *mut IPLvoid)>;

A callback that is called to calculate whether a ray hits any geometry. Strictly speaking, the function looks for any intersection with a ray interval (equivalent to a line segment).

\param origin Array containing the x, y, z coordinates (in that order) of the ray's origin. \param direction Array containing the x, y, z coordinates (in that order) of a unit-length vector along the ray's direction. \param minDistance The minimum distance from the origin at which an intersection may occur for it to be considered. \param maxDistance The maximum distance from the origin at which an intersection may occur for it to be considered. \param hitExists [out] An integer indicating whether the ray intersects any geometry. A value of 0 indicates no intersection, 1 indicates that an intersection exists. \param userData Pointer a block of memory containing arbitrary data, specified during the call to \c ::iplSetRayTracerCallbacks.