BRL-CAD
fb_osgl.h
Go to the documentation of this file.
1 /* F B _ O S 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_osgl.h
23  *
24  * Structure holding information necessary for embedding a
25  * framebuffer in an X11 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_OSGL
34 #include "common.h"
35 
36 #ifdef HAVE_SIGNAL_H
37 # include <signal.h>
38 #endif
39 #ifdef HAVE_SYS_TYPES_H
40 # include <sys/types.h>
41 #endif
42 #ifdef HAVE_SYS_SHM_H
43 # include <sys/shm.h>
44 #endif
45 #include <ctype.h>
46 #include <stdlib.h>
47 #include <string.h>
48 #ifdef HAVE_SYS_IPC_H
49 # include <sys/ipc.h>
50 #endif
51 #include <errno.h>
52 
53 #ifdef HAVE_SYS_WAIT_H
54 # include <sys/wait.h>
55 #endif
56 
57 #include "bio.h"
58 
59 #ifdef __cplusplus
60 extern "C" {
61 #endif
62 #include "bu/color.h"
63 #include "bu/file.h"
64 #include "bu/log.h"
65 #include "bu/malloc.h"
66 #include "bu/parallel.h"
67 #include "bu/str.h"
68 #include "fb.h"
69 #ifdef __cplusplus
70 }
71 #endif
72 
73 #ifdef __cplusplus
74 #include <osg/GraphicsContext>
75 #include <osgViewer/Viewer>
76 #include <osgViewer/GraphicsWindow>
77 #include <osgViewer/ViewerEventHandlers>
78 #include <osgViewer/config/SingleWindow>
79 
80 #include <osgDB/Registry>
81 
82 #include <osgGA/StateSetManipulator>
83 
84 #include <osg/ImageUtils>
85 #include <osg/TextureRectangle>
86 #include <osg/Geode>
87 #include <osg/Geometry>
88 #include <osg/DrawPixels>
89 #include <osg/StateSet>
90 #include <osg/Timer>
91 
92 #include <iostream>
93 #endif
94 
95 struct osgl_fb_info {
96  void *glc;
97  void *traits;
98  int double_buffer;
99  int soft_cmap;
100 };
101 #endif /* IF_OSGL */
102 
103 #endif /* FB_USE_INTERNAL_API */
104 
105 /*
106  * Local Variables:
107  * mode: C
108  * tab-width: 8
109  * indent-tabs-mode: t
110  * c-file-style: "stroustrup"
111  * End:
112  * ex: shiftwidth=4 tabstop=8
113  */
Header file for the BRL-CAD common definitions.