00001 /*======================================================================= 00002 *** THE CONTENT OF THIS WORK IS PROPRIETARY TO FEI S.A.S, (FEI S.A.S.), *** 00003 *** AND IS DISTRIBUTED UNDER A LICENSE AGREEMENT. *** 00004 *** *** 00005 *** REPRODUCTION, DISCLOSURE, OR USE, IN WHOLE OR IN PART, OTHER THAN AS *** 00006 *** SPECIFIED IN THE LICENSE ARE NOT TO BE UNDERTAKEN EXCEPT WITH PRIOR *** 00007 *** WRITTEN AUTHORIZATION OF FEI S.A.S. *** 00008 *** *** 00009 *** RESTRICTED RIGHTS LEGEND *** 00010 *** USE, DUPLICATION, OR DISCLOSURE BY THE GOVERNMENT OF THE CONTENT OF THIS *** 00011 *** WORK OR RELATED DOCUMENTATION IS SUBJECT TO RESTRICTIONS AS SET FORTH IN *** 00012 *** SUBPARAGRAPH (C)(1) OF THE COMMERCIAL COMPUTER SOFTWARE RESTRICTED RIGHT *** 00013 *** CLAUSE AT FAR 52.227-19 OR SUBPARAGRAPH (C)(1)(II) OF THE RIGHTS IN *** 00014 *** TECHNICAL DATA AND COMPUTER SOFTWARE CLAUSE AT DFARS 52.227-7013. *** 00015 *** *** 00016 *** COPYRIGHT (C) 1996-2020 BY FEI S.A.S, *** 00017 *** BORDEAUX, FRANCE *** 00018 *** ALL RIGHTS RESERVED *** 00019 **=======================================================================*/ 00020 /*======================================================================= 00021 ** Author : VSG (MMM YYYY) 00022 **=======================================================================*/ 00023 #if !defined(SO_GLX_H) 00024 #define SO_GLX_H 00025 00026 #include <Inventor/sys/SoGL.h> 00027 00028 #if defined(_WIN32) 00029 # include <Inventor/sys/wglew.h> 00030 #else 00031 00032 #ifdef __APPLE__ 00033 # include <OpenGL/OpenGL.h> 00034 # include <OpenGL/gl.h> 00035 #else 00036 00037 # if !defined(SOWX) 00038 # include <X11/Intrinsic.h> 00039 # endif 00040 00041 # include <Inventor/sys/glxew.h> 00042 #endif 00043 00044 //solve conflict between Qt and X11 00045 #if defined(SOQT) 00046 00047 # undef KeyPress 00048 # undef KeyRelease 00049 00050 // For SoQGLWidget 00051 # undef CursorShape 00052 00053 // For DialogViz qt widgets from QtGui 00054 #if defined(Bool) 00055 typedef Bool X11_Bool; 00056 #endif 00057 00058 # undef Bool 00059 00060 // For QDir 00061 # undef Unsorted 00062 00063 // For QSlider 00064 # undef Above 00065 # undef Below 00066 00067 // For QStyleOption 00068 # undef None 00069 // We need None sometimes... 00070 #define X11_None 0L 00071 00072 // # undef FocusOut 00073 // # undef FocusIn 00074 // # undef Above 00075 00076 //solve conflict about INT32 and INT8 both defined into Qt and X11 00077 # define INT32 X11_INT32 00078 # define INT8 X11_INT8 00079 # undef INT32 00080 # undef INT8 00081 00082 #endif // InventorQt_EXPORTS 00083 00084 #endif 00085 00086 #endif // SO_GLX_H 00087 00088 00089