d404d6be1580e137c98c839d4d9171537f58af3a
[xscreensaver] / hacks / glx / gllist.c
1 #include "gllist.h"
2
3 void renderList(const struct gllist *list, int wire_p){
4         for(;list!=NULL;list=list->next){
5                 glInterleavedArrays(list->format,0,list->data);
6                 glDrawArrays((wire_p ? GL_LINE_LOOP : list->primitive),
7                              0,list->points);
8         }
9 }