A hit is recorded by placing the depth of the name stack into the next vacant slot in the buffer, followed by the entire contents of the name stack. The bottom of the name stack is transferred to the buffer first, followed by the second from the bottom entry of the name stack, and so forth. In other words, the data from bottom to top is mapped from left to right. The charstr subroutine does not cause a hit, although cmov and cmov2 do cause hits. Picking does not work if you issue a new viewport in picking mode.
Nothing is drawn to the screen when the system is in picking mode.
Instead, drawing commands are piped to the picking mechanism and used to determine pick or select region hits. On most systems, nothing is actually placed in the pick buffer until the endpick subroutine is called. Parameters buffer Specifies the array to use for storing names. The example C language program pick1.c calls the pick subroutine to pick objects when the left mouse button is pressed. Related Information Turning off picking mode with the endpick subroutine.