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