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
28 #define MESA_EGL_NO_X11_HEADERS
31 extern const char *progname;
36 struct wscreensaver *priv;
40 struct window *window;
41 struct widget *widget;
47 unsigned long polygon_count;
51 struct wscreensaver_plugin {
53 void (*init)(struct ModeInfo *mi);
54 void (*draw)(struct ModeInfo *mi);
55 void (*reshape)(struct ModeInfo *mi, int w, int h);
56 /* void (*refresh)(struct ModeInfo *mi);
57 void (*finish)(struct ModeInfo *mi);*/
61 init_GL(struct ModeInfo *mi);
63 #endif /* WSCREENSAVER_H */