private int getPrototypeIndex ( Renderer renderer ) { int index = 0 ; for ( Renderer prototype : prototypes ) { if ( prototype . getClass ( ) . equals ( renderer . getClass ( ) ) ) { break ; } index ++ ; } return index ; }
Return the index associated to the Renderer .