OcclusionQuery::SetRenderCallback
Defined in:
Sets the render callback function for an occlusion query object.
C4Renderable.h
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 *);
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