Porting Picking Functions

All IRIS GL picking functions have OpenGL equivalents, with the exception of clearhitcode. The following table lists the IRIS GL picking functions and their equivalent OpenGL functions.

IRIS GL Function OpenGL Function Meaning
clearhitcode Not supported. Clears global variable and hitcode.
pick

select

glRenderMode(GL_SELECT) Switch to selection or picking mode.
endpick

endselect

glRenderMode(GL_RENDER) Switch to rendering mode.
picksize gluPickMatrix

glSelectBuffer

Set the return array.
initnames glInitNames
pushname

popname

glPushName

glPopName

loadname glLoadName

For more information on picking, see gluPickMatrix.