generate indices for grid using GL_LINEs ok