Debian package version of polhemus's g4display
Janis Streib
30.03.22 48e3f3ec6672ba89420338fdfa76018e46750c9e
commit | author | age
69b66f 1 // G4Display.h
JS 2
3 #ifndef G4DISPLAY_H_
4 #define G4DISPLAY_H_
5
6
7
8
9 #define REFRESH_RATE    30
10
11
12 gboolean cb_configure(GtkWidget*,GdkEventConfigure*,gpointer);
13 gboolean cb_expose(GtkWidget*,GdkEventExpose*,gpointer);
14 gboolean cb_timer(gpointer);
15 gboolean cb_keyPress(GtkWidget*,GdkEventKey*,gpointer);
16
17 void RenderSources(GLUquadricObj*,REND_STRUCT*);
18 void RenderSensors(GLUquadricObj* quad,REND_STRUCT* prs);
19 void QuitApp(GtkWidget*,gpointer);
20 static void* Collect(void*);
21
22 void OnFilter(CG4Trk*);
23 void OnIncr(CG4Trk*);
24 void OnVersion(GtkWidget*);
25
26
27 const float triad_colors[15][3]={
28
29   {0.0,0.5,0.5},   // teal
30   {1.0,0.0,0.0},   // red
31   {0.0,0.0,1.0},   // blue
32   {1.0,1.0,0.0},   // yellow
33   {0.5,0.0,1.0},   // purple
34   {0.0,0.5,1.0},   // sky blue
35   {0.0,0.0,0.0},   // black
36   {0.5,1.0,0.5},   // bright green
37   {0.0,0.5,0.0},   // lime
38   {0.25,0.0,0.0},  // brown
39   {1.0,0.5,0.0},   // orange
40   {0.5,0.5,0.5},   // grey
41   {0.5,0.5,0.0},   // kinda mustard green
42   {1.0,0.0,0.5},   // pink
43   {0.9,0.9,0.9}    // almond white
44 };
45
46
47
48
49 #endif