vPer
scoprire cosa passa nel punto x,y occorre:
vPassare
alla modalità di rendering selection
vglRenderMode(GL_SELECT);
v
vInizializzare
lo stack dei nomi
vglInitNames();
v// LoadName() won't work
with no names on the stack
vglLoadName(-1);
vPreparare
un buffer dove opengl metterà i nomi
delle entità che cadono nella zona d’interesse
vstatic unsigned
int selectBuf[16384];
vglSelectBuffer(16384,
selectBuf);