2 * Copyright (C) 2003 Robert Kooima
4 * NEVERBALL is free software; you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License as published
6 * by the Free Software Foundation; either version 2 of the License,
7 * or (at your option) any later version.
9 * This program is distributed in the hope that it will be useful, but
10 * WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12 * General Public License for more details.
20 /*---------------------------------------------------------------------------*/
31 #define GUI_LFT (GUI_NW | GUI_SW)
32 #define GUI_RGT (GUI_NE | GUI_SE)
33 #define GUI_TOP (GUI_NW | GUI_NE)
34 #define GUI_BOT (GUI_SW | GUI_SE)
35 #define GUI_ALL (GUI_TOP | GUI_BOT)
37 extern const GLfloat gui_wht[4];
38 extern const GLfloat gui_yel[4];
39 extern const GLfloat gui_red[4];
40 extern const GLfloat gui_blu[4];
41 extern const GLfloat gui_grn[4];
42 extern const GLfloat gui_blk[4];
43 extern const GLfloat gui_gry[4];
45 /*---------------------------------------------------------------------------*/
50 /*---------------------------------------------------------------------------*/
52 void gui_set_label(int, const char *);
53 void gui_set_image(int, const char *);
54 void gui_set_multi(int, const char *);
55 void gui_set_count(int, int);
56 void gui_set_clock(int, int);
57 void gui_set_color(int, const float *, const float *);
59 /*---------------------------------------------------------------------------*/
67 int gui_image(int, const char *, int, int);
68 int gui_start(int, const char *, int, int, int);
69 int gui_state(int, const char *, int, int, int);
70 int gui_label(int, const char *, int, int, const float *, const float *);
71 int gui_multi(int, const char *, int, int, const float *, const float *);
72 int gui_count(int, int, int, int);
73 int gui_clock(int, int, int, int);
77 /*---------------------------------------------------------------------------*/
79 void gui_dump(int, int);
80 void gui_layout(int, int, int);
81 int gui_search(int, int, int);
82 int gui_active(int, int, int);
85 /*---------------------------------------------------------------------------*/
88 void gui_pulse(int, float);
89 void gui_timer(int, float);
90 int gui_point(int, int, int);
91 int gui_stick(int, int, int);
100 /*---------------------------------------------------------------------------*/