2 * Copyright © 2011 Collabora, Ltd.
4 * Permission to use, copy, modify, distribute, and sell this software and its
5 * documentation for any purpose is hereby granted without fee, provided that
6 * the above copyright notice appear in all copies and that both that copyright
7 * notice and this permission notice appear in supporting documentation, and
8 * that the name of the copyright holders not be used in advertising or
9 * publicity pertaining to distribution of the software without specific,
10 * written prior permission. The copyright holders make no representations
11 * about the suitability of this software for any purpose. It is provided "as
12 * is" without express or implied warranty.
14 * THE COPYRIGHT HOLDERS DISCLAIM ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
15 * INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO
16 * EVENT SHALL THE COPYRIGHT HOLDERS BE LIABLE FOR ANY SPECIAL, INDIRECT OR
17 * CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE,
18 * DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
19 * TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE
23 #ifndef WSCREENSAVER_H
24 #define WSCREENSAVER_H
26 #define MESA_EGL_NO_X11_HEADERS
29 extern const char *progname;
34 struct wscreensaver *priv;
38 struct window *window;
39 struct widget *widget;
45 unsigned long polygon_count;
49 struct wscreensaver_plugin {
51 void (*init)(struct ModeInfo *mi);
52 void (*draw)(struct ModeInfo *mi);
53 void (*reshape)(struct ModeInfo *mi, int w, int h);
54 /* void (*refresh)(struct ModeInfo *mi);
55 void (*finish)(struct ModeInfo *mi);*/
59 init_GL(struct ModeInfo *mi);
61 #endif /* WSCREENSAVER_H */