BRL-CAD
fb_wgl.h
Go to the documentation of this file.
1 /* F B _ W G L . H
2  * BRL-CAD
3  *
4  * Copyright (c) 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 if */
21 /** @{*/
22 /** @file fb_wgl.h
23  *
24  * Structure holding information necessary for embedding a
25  * framebuffer in a Windows Tk parent window. This is NOT public API
26  * for libfb, and is not guaranteed to be stable from one
27  * release to the next.
28  *
29  */
30 /** @} */
31 
32 #ifdef FB_USE_INTERNAL_API
33 #ifdef IF_WGL
34 # include "common.h"
35 # include "bio.h"
36 /* The wgl interface as currently implemented uses some
37  * X11 types, supplied by Tk. */
38 # include <tk.h>
39 # ifdef HAVE_GL_GL_H
40 # include <GL/gl.h>
41 # endif
42 
43 struct wgl_fb_info {
44  Display *dpy;
45  Window win;
46  Colormap cmap;
47  PIXELFORMATDESCRIPTOR *vip;
48  HDC hdc;
49  HGLRC glxc;
50  int double_buffer;
51  int soft_cmap;
52 };
53 #endif /* IF_WGL */
54 #endif /* FB_USE_INTERNAL_API */
55 
56 /*
57  * Local Variables:
58  * mode: C
59  * tab-width: 8
60  * indent-tabs-mode: t
61  * c-file-style: "stroustrup"
62  * End:
63  * ex: shiftwidth=4 tabstop=8
64  */
long Display
Definition: dm_xvars.h:49
Header file for the BRL-CAD common definitions.
long Colormap
Definition: dm_xvars.h:51
long Window
Definition: dm_xvars.h:50