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 /*---------------------------------------------------------------------------*/
22 #define GUI_FACE "ttf/VeraBd.ttf"
32 #define GUI_LFT (GUI_NW | GUI_SW)
33 #define GUI_RGT (GUI_NE | GUI_SE)
34 #define GUI_TOP (GUI_NW | GUI_NE)
35 #define GUI_BOT (GUI_SW | GUI_SE)
36 #define GUI_ALL (GUI_TOP | GUI_BOT)
38 extern const GLfloat gui_wht[4];
39 extern const GLfloat gui_yel[4];
40 extern const GLfloat gui_red[4];
41 extern const GLfloat gui_blu[4];
42 extern const GLfloat gui_grn[4];
43 extern const GLfloat gui_blk[4];
44 extern const GLfloat gui_gry[4];
46 /*---------------------------------------------------------------------------*/
51 /*---------------------------------------------------------------------------*/
53 void gui_set_label(int, const char *);
54 void gui_set_image(int, const char *);
55 void gui_set_multi(int, const char *);
56 void gui_set_count(int, int);
57 void gui_set_clock(int, int);
58 void gui_set_color(int, const float *, const float *);
60 /*---------------------------------------------------------------------------*/
68 int gui_image(int, const char *, int, int);
69 int gui_start(int, const char *, int, int, int);
70 int gui_state(int, const char *, int, int, int);
71 int gui_label(int, const char *, int, int, const float *, const float *);
72 int gui_multi(int, const char *, int, int, const float *, const float *);
73 int gui_count(int, int, int, int);
74 int gui_clock(int, int, int, int);
78 /*---------------------------------------------------------------------------*/
80 void gui_dump(int, int);
81 void gui_layout(int, int, int);
82 int gui_search(int, int, int);
83 int gui_active(int, int, int);
86 /*---------------------------------------------------------------------------*/
89 void gui_pulse(int, float);
90 void gui_timer(int, float);
91 int gui_point(int, int, int);
92 int gui_stick(int, int, int);
100 /*---------------------------------------------------------------------------*/