Can any one give any link to any tutorial or sample code for using selection. How do I use it?
The selection mode is deprecated and often only a software implementation. In most cases it’s much faster to encode the object ID as color and read it back.