BRL-CAD
dm-wgl.h
Go to the documentation of this file.
1 /* D M - W G L . 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 
21 /** @addtogroup libdm */
22 /** @{ */
23 /** @file dm-wgl.h
24  *
25  */
26 
27 #ifndef DM_WGL_H
28 #define DM_WGL_H
29 
30 #include "common.h"
31 
32 #ifdef HAVE_GL_GL_H
33 # include <GL/gl.h>
34 #endif
35 
36 #include "bu/vls.h"
37 
39 
40 #define CMAP_BASE 40
41 
42 /* Map +/-2048 GED space into -1.0..+1.0 :: x/2048*/
43 #define GED2IRIS(x) (((float)(x))*0.00048828125)
44 
45 struct wgl_vars {
46  HGLRC glxc;
47  GLdouble faceplate_mat[16];
48  int face_flag;
51  int ovec; /* Old color map entry number */
52  char is_direct;
53  GLclampf r, g, b;
54 };
55 
56 extern void wgl_fogHint();
57 
59 
60 #endif /* DM_WGL_H */
61 
62 /** @} */
63 /*
64  * Local Variables:
65  * mode: C
66  * tab-width: 8
67  * indent-tabs-mode: t
68  * c-file-style: "stroustrup"
69  * End:
70  * ex: shiftwidth=4 tabstop=8
71  */
GLclampf r
Definition: dm-wgl.h:53
int fontOffset
Definition: dm-wgl.h:50
char is_direct
Definition: dm-wgl.h:52
Header file for the BRL-CAD common definitions.
HGLRC glxc
Definition: dm-wgl.h:46
int ovec
Definition: dm-wgl.h:51
#define __BEGIN_DECLS
Definition: common.h:73
int * perspective_mode
Definition: dm-wgl.h:49
GLclampf b
Definition: dm-wgl.h:53
void wgl_fogHint()
GLclampf g
Definition: dm-wgl.h:53
#define __END_DECLS
Definition: common.h:74
GLdouble faceplate_mat[16]
Definition: dm-wgl.h:47
int face_flag
Definition: dm-wgl.h:48