dm-glx.h

Go to the documentation of this file.
00001 /*                          D M - G L 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-glx.h
00024  *
00025  */
00026 #ifndef SEEN_DM_GLX
00027 #define SEEN_DM_GLX
00028 
00029 /* Map +/-2048 GED space into -1.0..+1.0 :: x/2048*/
00030 #define GED2IRIS(x)     (((float)(x))*0.00048828125)
00031 
00032 #define Glx_MV_O(_m) offsetof(struct modifiable_glx_vars, _m)
00033 
00034 struct modifiable_glx_vars {
00035   int cueing_on;
00036   int zclipping_on;
00037   int zbuffer_on;
00038   int lighting_on;
00039   int debug;
00040   int zbuf;
00041   int rgb;
00042   int doublebuffer;
00043   int min_scr_z;       /* based on getgdesc(GD_ZMIN) */
00044   int max_scr_z;       /* based on getgdesc(GD_ZMAX) */
00045 };
00046 
00047 struct glx_vars {
00048   struct bu_list l;
00049   Display *dpy;
00050   Window win;
00051   Tk_Window top;
00052   Tk_Window xtkwin;
00053   int depth;
00054   int omx, omy;
00055   unsigned int mb_mask;
00056   Colormap cmap;
00057   XVisualInfo *vip;
00058   int devmotionnotify;
00059   int devbuttonpress;
00060   int devbuttonrelease;
00061   int knobs[8];
00062   int stereo_is_on;
00063   int is_gt;
00064   struct modifiable_glx_vars mvars;
00065 };
00066 
00067 extern void glx_clearToBlack();
00068 extern struct glx_vars head_glx_vars;
00069 
00070 #endif /* SEEN_DM_GLX */
00071 /*@}*/
00072 /*
00073  * Local Variables:
00074  * mode: C
00075  * tab-width: 8
00076  * c-basic-offset: 4
00077  * indent-tabs-mode: t
00078  * End:
00079  * ex: shiftwidth=4 tabstop=8
00080  */
00081 

Generated on Mon Sep 18 01:24:40 2006 for BRL-CAD by  doxygen 1.4.6