From http://www.jwz.org/xscreensaver/xscreensaver-5.31.tar.gz
[xscreensaver] / hacks / glx / gllist.h
1 /* xscreensaver, Copyright (c) 1998-2014 Jamie Zawinski <jwz@jwz.org>
2  *
3  * Permission to use, copy, modify, distribute, and sell this software and its
4  * documentation for any purpose is hereby granted without fee, provided that
5  * the above copyright notice appear in all copies and that both that
6  * copyright notice and this permission notice appear in supporting
7  * documentation.  No representations are made about the suitability of this
8  * software for any purpose.  It is provided "as is" without express or 
9  * implied warranty.
10  */
11
12 #ifndef __GLLIST_H__
13 #define __GLLIST_H__
14
15 #ifdef HAVE_CONFIG_H
16 # include "config.h"
17 #endif /* HAVE_CONFIG_H */
18
19 #include <stdlib.h>
20
21 #ifdef HAVE_COCOA
22 #elif defined(HAVE_ANDROID)
23 # include <GLES/gl.h>
24 #else /* real X11 */
25 # include <GL/gl.h>
26 #endif
27
28 #ifdef HAVE_JWZGLES
29 # include "jwzgles.h"
30 #endif /* HAVE_JWZGLES */
31
32 struct gllist 
33 {
34   GLenum format;
35   GLenum primitive;
36   int points;
37   const void *data;
38   struct gllist *next;
39 };
40
41 void renderList (const struct gllist *, int wire_p);
42 void renderListNormals (const struct gllist *, GLfloat length, int facesp);
43
44 #endif /* __GLLIST_H__ */