From: Jim E. <jim...@al...> - 2001-08-28 12:28:12
|
Hi, I have been converting many of my objects to glList, both for the possible performance improvement and to reduce the amount of explicit memory management my program has to do. But, in the following object, I want to be able to change the colortable without recomputing the vertices. Does anyone know of a trick to do this or is this just the trade-off I have to make in order to use glLists ? glBegin( GL_LINES ); for(i=0;i<max;i++){ glColor4ubv(color+i); glVertex3sv(verts+i); } glEnd(); Jim |