00001 /* D M - X . H 00002 * BRL-CAD 00003 * 00004 * Copyright (c) 1993-2006 United States Government as represented by 00005 * the U.S. Army Research Laboratory. 00006 * 00007 * This library is free software; you can redistribute it and/or 00008 * modify it under the terms of the GNU Lesser General Public License 00009 * as published by the Free Software Foundation; either version 2.1 of 00010 * the License, or (at your option) any later version. 00011 * 00012 * This library is distributed in the hope that it will be useful, but 00013 * WITHOUT ANY WARRANTY; without even the implied warranty of 00014 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 00015 * Library General Public License for more details. 00016 * 00017 * You should have received a copy of the GNU Lesser General Public 00018 * License along with this file; see the file named COPYING for more 00019 * information. 00020 */ 00021 /** @addtogroup libdm */ 00022 /*@{*/ 00023 /** @file dm-X.h 00024 * 00025 */ 00026 00027 #ifndef __DM_X__ 00028 #define __DM_X__ 00029 00030 #include "common.h" 00031 00032 #include "dm_color.h" 00033 00034 00035 #define CMAP_BASE 40 00036 #define CUBE_DIMENSION 6 00037 #define NUM_PIXELS 216 /* CUBE_DIMENSION * CUBE_DIMENSION * CUBE_DIMENSION */ 00038 #define ColormapNull (Colormap *)NULL 00039 00040 struct x_vars { 00041 GC gc; 00042 Pixmap pix; 00043 mat_t xmat; 00044 int is_trueColor; 00045 unsigned long bd, bg, fg; /* color of border, background, foreground */ 00046 unsigned long pixels[NUM_PIXELS]; 00047 }; 00048 00049 #endif /* __DM_X__ */ 00050 /*@}*/ 00051 /* 00052 * Local Variables: 00053 * mode: C 00054 * tab-width: 8 00055 * c-basic-offset: 4 00056 * indent-tabs-mode: t 00057 * End: 00058 * ex: shiftwidth=4 tabstop=8 00059 */ 00060