BRL-CAD
dm-X.h
Go to the documentation of this file.
1 /* D M - 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-X.h
23  *
24  */
25 
26 #ifndef DM_X_H
27 #define DM_X_H
28 
29 #include "common.h"
30 
31 
32 #define CMAP_BASE 40
33 #define CUBE_DIMENSION 6
34 #define NUM_PIXELS 216 /* CUBE_DIMENSION * CUBE_DIMENSION * CUBE_DIMENSION */
35 #define ColormapNull (Colormap *)NULL
36 
37 struct x_vars {
38  GC gc;
39  Pixmap pix;
40  mat_t xmat;
42  unsigned long bd, bg, fg; /* color of border, background, foreground */
43  unsigned long pixels[NUM_PIXELS];
44 };
45 
46 #endif /* DM_X_H */
47 /** @} */
48 /*
49  * Local Variables:
50  * mode: C
51  * tab-width: 8
52  * indent-tabs-mode: t
53  * c-file-style: "stroustrup"
54  * End:
55  * ex: shiftwidth=4 tabstop=8
56  */
unsigned long bd
Definition: dm-X.h:42
Header file for the BRL-CAD common definitions.
#define NUM_PIXELS
Definition: dm-X.h:34
unsigned long fg
Definition: dm-X.h:42
unsigned long pixels[NUM_PIXELS]
Definition: dm-X.h:43
unsigned long bg
Definition: dm-X.h:42
int is_trueColor
Definition: dm-X.h:41
mat_t xmat
Definition: dm-X.h:40
Pixmap pix
Definition: dm-X.h:39
Definition: dm-X.h:37
GC gc
Definition: dm-X.h:38