Functions | |
int | Begin_Buffered_Selection (const char *start_name, double left, double right, double bottom, double top, const char *options) |
int Begin_Buffered_Selection | ( | const char * | start_name, | |
double | left, | |||
double | right, | |||
double | bottom, | |||
double | top, | |||
const char * | options | |||
) |
Prepares HOOPS for the buffered selection process and allows the valid selection area (typically, the entire window) to be specified.
start_name | - The fully-qualified name of a window segment. | |
left | - The left bound of the valid selection area, in window coordinates. | |
right | - The left bound of the valid selection area, in window coordinates. | |
bottom | - The left bound of the valid selection area, in window coordinates. | |
top | - The left bound of the valid selection area, in window coordinates. | |
options | - A quoted string or a string variable containing a list of desired options. Passed by reference always. |
In addition to providing a way of only selecting on what's visible, buffered selection can provide a performance boost for situations where you need to perform multiple selections in a row. For example, perhaps you need to query or highlight/dehighlight multiple times on a scene which is not getting edited/redrawn between each selection.
A typical flow of buffered selection is as follows:
During the process of redrawing the scene into the selection buffer:
Buffered selections is only supported when using the OpenGL2 and DX11 drivers.