Open Inventor Release 2023.2.3
 
Loading...
Searching...
No Matches
SoGLX.h
Go to the documentation of this file.
1/*=======================================================================
2 *** THE CONTENT OF THIS WORK IS PROPRIETARY TO FEI S.A.S, (FEI S.A.S.), ***
3 *** AND IS DISTRIBUTED UNDER A LICENSE AGREEMENT. ***
4 *** ***
5 *** REPRODUCTION, DISCLOSURE, OR USE, IN WHOLE OR IN PART, OTHER THAN AS ***
6 *** SPECIFIED IN THE LICENSE ARE NOT TO BE UNDERTAKEN EXCEPT WITH PRIOR ***
7 *** WRITTEN AUTHORIZATION OF FEI S.A.S. ***
8 *** ***
9 *** RESTRICTED RIGHTS LEGEND ***
10 *** USE, DUPLICATION, OR DISCLOSURE BY THE GOVERNMENT OF THE CONTENT OF THIS ***
11 *** WORK OR RELATED DOCUMENTATION IS SUBJECT TO RESTRICTIONS AS SET FORTH IN ***
12 *** SUBPARAGRAPH (C)(1) OF THE COMMERCIAL COMPUTER SOFTWARE RESTRICTED RIGHT ***
13 *** CLAUSE AT FAR 52.227-19 OR SUBPARAGRAPH (C)(1)(II) OF THE RIGHTS IN ***
14 *** TECHNICAL DATA AND COMPUTER SOFTWARE CLAUSE AT DFARS 52.227-7013. ***
15 *** ***
16 *** COPYRIGHT (C) 1996-2020 BY FEI S.A.S, ***
17 *** BORDEAUX, FRANCE ***
18 *** ALL RIGHTS RESERVED ***
19**=======================================================================*/
20/*=======================================================================
21** Author : VSG (MMM YYYY)
22**=======================================================================*/
23#if !defined(SO_GLX_H)
24#define SO_GLX_H
25
26#include <Inventor/sys/SoGL.h>
27
28#if defined(OIV_HEADLESS)
29# include <Inventor/sys/eglew.h>
30#else
31
32#if defined(_WIN32)
33# include <Inventor/sys/wglew.h>
34#else
35
36#ifdef __APPLE__
37# include <OpenGL/OpenGL.h>
38# include <OpenGL/gl.h>
39#else
40# include <X11/Intrinsic.h>
41# include <Inventor/sys/glxew.h>
42#endif
43
44//solve conflict between Qt and X11
45#if defined(SOQT)
46
47# undef KeyPress
48# undef KeyRelease
49
50// For SoQGLWidget
51# undef CursorShape
52
53// For DialogViz qt widgets from QtGui
54#if defined(Bool)
55 typedef Bool X11_Bool;
56#endif
57
58# undef Bool
59
60// For QDir
61# undef Unsorted
62
63// For QSlider
64# undef Above
65# undef Below
66
67// For QStyleOption
68# undef None
69// We need None sometimes...
70#define X11_None 0L
71
72// # undef FocusOut
73// # undef FocusIn
74// # undef Above
75
76//solve conflict about INT32 and INT8 both defined into Qt and X11
77# define INT32 X11_INT32
78# define INT8 X11_INT8
79# undef INT32
80# undef INT8
81
82#endif // InventorQt_EXPORTS
83
84#endif
85
86#endif
87
88#endif // SO_GLX_H
89
90