dm-wgl.h

Go to the documentation of this file.
00001 /*                          D M - W G L . 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-wgl.h
00024  *
00025  */
00026 #ifndef SEEN_DM_WGL
00027 #define SEEN_DM_WGL
00028 
00029 #include "dm_color.h"
00030 #define CMAP_BASE 40
00031 
00032 /* Map +/-2048 GED space into -1.0..+1.0 :: x/2048*/
00033 #define GED2IRIS(x)     (((float)(x))*0.00048828125)
00034 
00035 #define Wgl_MV_O(_m) offsetof(struct modifiable_wgl_vars, _m)
00036 
00037 struct modifiable_wgl_vars {
00038   int cueing_on;
00039   int zclipping_on;
00040   int zbuffer_on;
00041   int lighting_on;
00042   int transparency_on;
00043   int fastfog;
00044   double fogdensity;
00045   int zbuf;
00046   int rgb;
00047   int doublebuffer;
00048   int depth;
00049   int debug;
00050   double bound;
00051   int boundFlag;
00052 };
00053 
00054 struct wgl_vars {
00055   HGLRC glxc;
00056   GLdouble faceplate_mat[16];
00057   int face_flag;
00058   int *perspective_mode;
00059   int fontOffset;
00060   int ovec;             /* Old color map entry number */
00061   char is_direct;
00062   GLclampf r, g, b;
00063   struct modifiable_wgl_vars mvars;
00064 };
00065 
00066 extern void wgl_fogHint();
00067 
00068 #endif /* SEEN_DM_WGL */
00069 /*@}*/
00070 /*
00071  * Local Variables:
00072  * mode: C
00073  * tab-width: 8
00074  * c-basic-offset: 4
00075  * indent-tabs-mode: t
00076  * End:
00077  * ex: shiftwidth=4 tabstop=8
00078  */
00079 

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