1 // Copyright (c) 1991-1999 Matra Datavision
2 // Copyright (c) 1999-2014 OPEN CASCADE SAS
4 // This file is part of Open CASCADE Technology software library.
6 // This library is free software; you can redistribute it and/or modify it under
7 // the terms of the GNU Lesser General Public License version 2.1 as published
8 // by the Free Software Foundation, with special exception defined in the file
9 // OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
10 // distribution for complete text of the license and disclaimer of any warranty.
12 // Alternatively, this file may be used under the terms of Open CASCADE
13 // commercial license or contractual agreement.
16 #ifndef InterfaceGraphic_X11Header
17 #define InterfaceGraphic_X11Header
22 #include <X11/Xutil.h>
23 #include <X11/Xatom.h>
26 #if defined (sun) || defined (SUNOS) || defined (__alpha) || defined (DECOSF1) || defined (sgi) || defined (IRIX) || defined (__hpux)|| defined (HPUX)
28 #include <X11/bitmaps/icon>
30 #endif // SUNOS or DECOSF1 or SOLARIS or HPUX or IRIX
31 #if defined(ULTRIX) && !defined(icon_width)
33 #define icon_height 16
34 static unsigned char icon_bits[] =
36 0xff, 0xff, 0xab, 0xaa, 0x55, 0xd5, 0xab, 0xaa, 0x05, 0xd0, 0x0b, 0xa0,
37 0x05, 0xd0, 0x0b, 0xa0, 0x05, 0xd0, 0x0b, 0xa0, 0x05, 0xd0, 0x0b, 0xa0,
38 0x55, 0xd5, 0xab, 0xaa, 0x55, 0xd5, 0xff, 0xff
42 // workaround name conflicts with OCCT methods (in class TopoDS_Shape for example)
51 #define DISPLAY Display
52 #define GLCONTEXT GLXContext
53 #define GLDRAWABLE GLXDrawable
55 #define GET_GL_CONTEXT() glXGetCurrentContext()
56 #define GET_GLDEV_CONTEXT() glXGetCurrentDrawable()
57 #define GL_MAKE_CURRENT(a,b,c) glXMakeCurrent(a,b,c)
63 #endif // InterfaceGraphic_X11Header