BRL-CAD
dm-ogl.h
Go to the documentation of this file.
1 /* D M - O 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 /** @addtogroup libdm */
21 /** @{ */
22 /** @file dm-ogl.h
23  *
24  */
25 
26 #ifndef DM_OGL_H
27 #define DM_OGL_H
28 
29 #include "common.h"
30 
31 #ifdef HAVE_GL_GLX_H
32 # include <GL/glx.h>
33 #endif
34 #ifdef HAVE_GL_GL_H
35 # include <GL/gl.h>
36 #endif
37 
38 #include "bu/vls.h"
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 
46 struct ogl_vars {
47  GLXContext glxc;
48  GLdouble faceplate_mat[16];
49  int face_flag;
52  int ovec; /* Old color map entry number */
53  char is_direct;
54  GLclampf r, g, b;
55 };
56 
58 
59 extern void ogl_fogHint();
60 
62 
63 #endif /* DM_OGL_H */
64 
65 /** @} */
66 /*
67  * Local Variables:
68  * mode: C
69  * tab-width: 8
70  * indent-tabs-mode: t
71  * c-file-style: "stroustrup"
72  * End:
73  * ex: shiftwidth=4 tabstop=8
74  */
GLXContext glxc
Definition: dm-ogl.h:47
int * perspective_mode
Definition: dm-ogl.h:50
GLclampf g
Definition: dm-ogl.h:54
void ogl_fogHint()
Header file for the BRL-CAD common definitions.
GLclampf b
Definition: dm-ogl.h:54
GLdouble faceplate_mat[16]
Definition: dm-ogl.h:48
int face_flag
Definition: dm-ogl.h:49
#define __BEGIN_DECLS
Definition: common.h:73
GLclampf r
Definition: dm-ogl.h:54
char is_direct
Definition: dm-ogl.h:53
int fontOffset
Definition: dm-ogl.h:51
int ovec
Definition: dm-ogl.h:52
#define __END_DECLS
Definition: common.h:74