From d3a98cf6cbc3bd0b9efc570f58e8812c03931c18 Mon Sep 17 00:00:00 2001 From: Simon Rettberg Date: Tue, 16 Oct 2018 10:08:48 +0200 Subject: Original 5.40 --- hacks/glx/gllist.h | 44 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 44 insertions(+) create mode 100644 hacks/glx/gllist.h (limited to 'hacks/glx/gllist.h') diff --git a/hacks/glx/gllist.h b/hacks/glx/gllist.h new file mode 100644 index 0000000..1d6326a --- /dev/null +++ b/hacks/glx/gllist.h @@ -0,0 +1,44 @@ +/* xscreensaver, Copyright (c) 1998-2014 Jamie Zawinski + * + * Permission to use, copy, modify, distribute, and sell this software and its + * documentation for any purpose is hereby granted without fee, provided that + * the above copyright notice appear in all copies and that both that + * copyright notice and this permission notice appear in supporting + * documentation. No representations are made about the suitability of this + * software for any purpose. It is provided "as is" without express or + * implied warranty. + */ + +#ifndef __GLLIST_H__ +#define __GLLIST_H__ + +#ifdef HAVE_CONFIG_H +# include "config.h" +#endif /* HAVE_CONFIG_H */ + +#include + +#ifdef HAVE_COCOA +#elif defined(HAVE_ANDROID) +# include +#else /* real X11 */ +# include +#endif + +#ifdef HAVE_JWZGLES +# include "jwzgles.h" +#endif /* HAVE_JWZGLES */ + +struct gllist +{ + GLenum format; + GLenum primitive; + int points; + const void *data; + struct gllist *next; +}; + +void renderList (const struct gllist *, int wire_p); +void renderListNormals (const struct gllist *, GLfloat length, int facesp); + +#endif /* __GLLIST_H__ */ -- cgit v1.2.3-55-g7522