private boolean isSplittable ( int count , int type ) { switch ( type ) { case GL11 . GL_QUADS : return count % 4 == 0 ; case GL11 . GL_TRIANGLES : return count % 3 == 0 ; case GL11 . GL_LINE : return count % 2 == 0 ; } return false ; }
Check if the geometry being created can be split at the current index