pub type IPLAnyHitCallback = Option<unsafe extern "C" fn(ray: *const IPLRay, minDistance: IPLfloat32, maxDistance: IPLfloat32, occluded: *mut IPLuint8, userData: *mut c_void)>;Expand description
Callback for calculating whether a ray hits any geometry.
Strictly speaking, the intersection is calculated with a ray interval (equivalent to a line segment).
\param ray The ray to trace. \param minDistance The minimum distance from the origin at which an intersection may occur for it to be considered. This function must not return any intersections closer to the origin than this value. \param maxDistance The maximum distance from the origin at which an intersection may occur for it to be considered. This function must not return any intersections farther from the origin than this value. If this value is less than or equal to \c minDistance, the function should ignore the ray, set \c occluded to 1, and return immediately. \param occluded [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 to a block of memory containing arbitrary data, specified during the call to \c iplSceneCreate.
Aliased Type§
pub enum IPLAnyHitCallback {
None,
Some(unsafe extern "C" fn(*const IPLRay, f32, f32, *mut u8, *mut c_void)),
}