C4 Engine
C4 Engine API Documentation

OcclusionQuery::SetRenderCallback

Defined in:  C4Renderable.h
Sets the render callback function for an occlusion query object.
Prototype

void SetRenderCallback(RenderCallback *callback, void *cookie);

Parameters
callback A pointer to the occlusion query's render callback function.
cookie The cookie that is passed to the render callback function as its last parameter.
Description
The SetRenderCallback function sets the render callback function for an occlusion query object to the function specified by the callback parameter. The RenderCallback type is defined as follows.

typedef void RenderCallback(OcclusionQuery *, List<Renderable> *, void *);

The cookie parameter specifies a user-defined pointer that is passed to the render callback function as its last parameter.

See the OcclusionQuery class for information about how this render callback function is used.
See Also

OcclusionQuery::GetRenderCookie