BRL-CAD
dm-glx.h
Go to the documentation of this file.
1 /* D M - G L X . H
2  * BRL-CAD
3  *
4  * Copyright (c) 1993-2014 United States Government as represented by
5  * the U.S. Army Research Laboratory.
6  *
7  * This library is free software; you can redistribute it and/or
8  * modify it under the terms of the GNU Lesser General Public License
9  * version 2.1 as published by the Free Software Foundation.
10  *
11  * This library is distributed in the hope that it will be useful, but
12  * WITHOUT ANY WARRANTY; without even the implied warranty of
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14  * Lesser General Public License for more details.
15  *
16  * You should have received a copy of the GNU Lesser General Public
17  * License along with this file; see the file named COPYING for more
18  * information.
19  */
20 /** @addtogroup libdm */
21 /** @{ */
22 /** @file dm-glx.h
23  *
24  */
25 
26 #ifndef DM_GLX_H
27 #define DM_GLX_H
28 
29 #include "common.h"
30 
31 /* Map +/-2048 GED space into -1.0..+1.0 :: x/2048*/
32 #define GED2IRIS(x) (((float)(x))*0.00048828125)
33 
34 #define Glx_MV_O(_m) offsetof(struct modifiable_glx_vars, _m)
35 
37  int cueing_on;
41  int debug;
42  int zbuf;
43  int rgb;
45  int min_scr_z; /* based on getgdesc(GD_ZMIN) */
46  int max_scr_z; /* based on getgdesc(GD_ZMAX) */
47 };
48 
49 struct glx_vars {
50  struct bu_list l;
55  int depth;
56  int omx, omy;
57  unsigned int mb_mask;
59  XVisualInfo *vip;
63  int knobs[8];
65  int is_gt;
67 };
68 
70 
71 extern void glx_clearToBlack();
72 extern struct glx_vars head_glx_vars;
73 
75 
76 #endif /* DM_GLX_H */
77 
78 /** @} */
79 /*
80  * Local Variables:
81  * mode: C
82  * tab-width: 8
83  * indent-tabs-mode: t
84  * c-file-style: "stroustrup"
85  * End:
86  * ex: shiftwidth=4 tabstop=8
87  */
Definition: list.h:118
Window win
Definition: dm-glx.h:52
unsigned int mb_mask
Definition: dm-glx.h:57
long Display
Definition: dm_xvars.h:49
struct bu_list l
Definition: dm-glx.h:50
Header file for the BRL-CAD common definitions.
int omy
Definition: dm-glx.h:56
XVisualInfo * vip
Definition: dm-glx.h:59
void glx_clearToBlack()
Display * dpy
Definition: dm-glx.h:51
int devbuttonpress
Definition: dm-glx.h:61
Colormap cmap
Definition: dm-glx.h:58
Tk_Window top
Definition: dm-glx.h:53
#define __BEGIN_DECLS
Definition: common.h:73
long Colormap
Definition: dm_xvars.h:51
long Window
Definition: dm_xvars.h:50
void * Tk_Window
Definition: dm_xvars.h:44
struct glx_vars head_glx_vars
int depth
Definition: dm-glx.h:55
int is_gt
Definition: dm-glx.h:65
#define __END_DECLS
Definition: common.h:74
Tk_Window xtkwin
Definition: dm-glx.h:54
int devbuttonrelease
Definition: dm-glx.h:62
int omx
Definition: dm-glx.h:56
int stereo_is_on
Definition: dm-glx.h:64
int knobs[8]
Definition: dm-glx.h:63
int devmotionnotify
Definition: dm-glx.h:60
struct modifiable_glx_vars mvars
Definition: dm-glx.h:66