Functions | |
void | Set_Driver (int(HC_CDECL *)(HC_ANY_ARGS) action) |
void | QSet_Driver (const char *segment, int(HC_CDECL *)(HC_ANY_ARGS) action) |
void | UnSet_Driver (void) |
void | QUnSet_Driver (const char *segment) |
void Set_Driver | ( | int(HC_CDECL *)(HC_ANY_ARGS) | action | ) |
Provides a secret hook from the graphics database to the real world.
action | - Address of a new action routine, a routine returning nothing. |
This routine would normally never be called by the application programmer. "Driver" attributes will generally only be specified in the HOOPS machine- or site-specific start-up routine.
In a scene that is a collection of windows and lights, HOOPS redraws all windows with lights, if a new window containing lights is created, or a window containing lights is copied (e.g. to another driver segment like ?hardcopy), or a window containing lights is destroyed. The problem results from lights being added to a segment (via an include or otherwise) before HOOPS has a chance to realize that the segment is a driver (and has an implicit window). The simple workaround is to set a window (-1.0, 1.0, -1.0, 1.0) immediately upon creating each new driver segment.
void QSet_Driver | ( | const char * | segment, | |
int(HC_CDECL *)(HC_ANY_ARGS) | action | |||
) |
Similar to Set_Driver(), but operates on a given segment rather than the currently open one.
segment | - Name of the segment(s) to be changed. | |
action | - Address of a new action routine, a routine returning nothing |
void UnSet_Driver | ( | void | ) |
Removes all settings established by a previous call to Set_Driver().
void QUnSet_Driver | ( | const char * | segment | ) |
Removes all settings established by a previous call Set_Driver(), but operates on a given segment rather than the currently open one.
segment | - Name of the segment(s) to be changed. |