Qt 4.8
|
#include "qgl.h"
#include "qgl_p.h"
#include "qmap.h"
#include "qapplication.h"
#include "qcolormap.h"
#include "qdesktopwidget.h"
#include "qpixmap.h"
#include "qhash.h"
#include "qlibrary.h"
#include "qdebug.h"
#include <private/qfontengine_ft_p.h>
#include <private/qt_x11_p.h>
#include <private/qpixmap_x11_p.h>
#include <private/qimagepixmapcleanuphooks_p.h>
#include <private/qunicodetables_p.h>
#include <GL/glx.h>
#include <X11/Xlib.h>
#include <X11/Xutil.h>
#include <X11/Xos.h>
#include <X11/Xatom.h>
#include <dlfcn.h>
#include "qgl_x11.moc"
Go to the source code of this file.
Classes | |
struct | QCMapEntry |
struct | QGLCMapCleanupHandler |
class | QGLOverlayWidget |
class | QGLTemporaryContextPrivate |
struct | QTransColor |
Typedefs | |
typedef QHash< int, QCMapEntry * > | CMapEntryHash |
typedef QHash< int, QMap< int, QRgb > > | GLCMapHash |
Functions | |
static bool | buildSpec (int *spec, const QGLFormat &f, QPaintDevice *paintDevice, int bufDepth, bool onlyFBConfig=false) |
static void | cleanup_cmaps () |
static void | find_trans_colors () |
static bool | qCanAllocColors (QWidget *w) |
static void | qgl_use_font (QFontEngineFT *engine, int first, int count, int listBase) |
This is basically a substitute for glxUseXFont() which can only handle XLFD fonts. More... | |
void * | qglx_getProcAddress (const char *procName) |
static void | qStoreColors (QWidget *tlw, Colormap cmap, const QGLColormap &cols) |
Colormap | qt_gl_choose_cmap (Display *dpy, XVisualInfo *vi) |
static uint | qt_transparent_pixel (VisualID id, int screen) |
Drawable | qt_x11Handle (const QPaintDevice *pd) |
Returns the X11 Drawable of the paint device. More... | |
const QX11Info * | qt_x11Info (const QPaintDevice *pd) |
Variables | |
static bool | first_time = true |
static bool | mesa_gl = false |
static QVector< QTransColor > | trans_colors |
static int | trans_colors_init = false |
#define GLX_BIND_TO_MIPMAP_TEXTURE_EXT 0x20D2 |
Definition at line 105 of file qgl_x11.cpp.
#define GLX_BIND_TO_TEXTURE_RGB_EXT 0x20D0 |
Definition at line 103 of file qgl_x11.cpp.
Referenced by QGLContextPrivate::bindTextureFromNativePixmap().
#define GLX_BIND_TO_TEXTURE_RGBA_EXT 0x20D1 |
Definition at line 104 of file qgl_x11.cpp.
Referenced by QGLContextPrivate::bindTextureFromNativePixmap().
#define GLX_BIND_TO_TEXTURE_TARGETS_EXT 0x20D3 |
Definition at line 106 of file qgl_x11.cpp.
Referenced by QGLContextPrivate::bindTextureFromNativePixmap().
#define GLX_CONTEXT_COMPATIBILITY_PROFILE_BIT_ARB 0x00000002 |
Definition at line 129 of file qgl_x11.cpp.
Referenced by buildSpec().
#define GLX_CONTEXT_CORE_PROFILE_BIT_ARB 0x00000001 |
Definition at line 128 of file qgl_x11.cpp.
Referenced by buildSpec().
#define GLX_CONTEXT_DEBUG_BIT_ARB 0x00000001 |
Definition at line 120 of file qgl_x11.cpp.
#define GLX_CONTEXT_FLAGS_ARB 0x2094 |
Definition at line 124 of file qgl_x11.cpp.
#define GLX_CONTEXT_FORWARD_COMPATIBLE_BIT_ARB 0x00000002 |
Definition at line 121 of file qgl_x11.cpp.
#define GLX_CONTEXT_MAJOR_VERSION_ARB 0x2091 |
Definition at line 122 of file qgl_x11.cpp.
Referenced by buildSpec().
#define GLX_CONTEXT_MINOR_VERSION_ARB 0x2092 |
Definition at line 123 of file qgl_x11.cpp.
Referenced by buildSpec().
#define GLX_CONTEXT_PROFILE_MASK_ARB 0x9126 |
Definition at line 130 of file qgl_x11.cpp.
Referenced by buildSpec().
#define GLX_EXT_texture_from_pixmap 1 |
Definition at line 65 of file qgl_x11.cpp.
#define GLX_FRONT_LEFT_EXT 0x20DE |
Definition at line 116 of file qgl_x11.cpp.
Referenced by QGLContextPrivate::bindTextureFromNativePixmap(), and QGLContextPrivate::unbindPixmapFromTexture().
#define GLX_MIPMAP_TEXTURE_EXT 0x20D7 |
Definition at line 110 of file qgl_x11.cpp.
Referenced by QGLContextPrivate::bindTextureFromNativePixmap().
#define GLX_SAMPLE_BUFFERS_ARB 100000 |
Definition at line 96 of file qgl_x11.cpp.
Referenced by buildSpec(), ShivaVGWindowSurfacePrivate::ensureContext(), and qglx_buildSpec().
#define GLX_SAMPLES_ARB 100001 |
Definition at line 97 of file qgl_x11.cpp.
Referenced by buildSpec(), ShivaVGWindowSurfacePrivate::ensureContext(), qglx_buildSpec(), and qglx_platformWindowFromGLXFBConfig().
#define GLX_TEXTURE_2D_BIT_EXT 0x00000002 |
Definition at line 101 of file qgl_x11.cpp.
Referenced by QGLContextPrivate::bindTextureFromNativePixmap().
#define GLX_TEXTURE_2D_EXT 0x20DC |
Definition at line 114 of file qgl_x11.cpp.
Referenced by QGLContextPrivate::bindTextureFromNativePixmap().
#define GLX_TEXTURE_FORMAT_EXT 0x20D5 |
Definition at line 108 of file qgl_x11.cpp.
Referenced by QGLContextPrivate::bindTextureFromNativePixmap().
#define GLX_TEXTURE_FORMAT_NONE_EXT 0x20D8 |
Definition at line 111 of file qgl_x11.cpp.
#define GLX_TEXTURE_FORMAT_RGB_EXT 0x20D9 |
Definition at line 112 of file qgl_x11.cpp.
Referenced by QGLContextPrivate::bindTextureFromNativePixmap().
#define GLX_TEXTURE_FORMAT_RGBA_EXT 0x20DA |
Definition at line 113 of file qgl_x11.cpp.
Referenced by QGLContextPrivate::bindTextureFromNativePixmap().
#define GLX_TEXTURE_RECTANGLE_BIT_EXT 0x00000004 |
Definition at line 102 of file qgl_x11.cpp.
#define GLX_TEXTURE_RECTANGLE_EXT 0x20DD |
Definition at line 115 of file qgl_x11.cpp.
#define GLX_TEXTURE_TARGET_EXT 0x20D6 |
Definition at line 109 of file qgl_x11.cpp.
Referenced by QGLContextPrivate::bindTextureFromNativePixmap().
#define GLX_Y_INVERTED_EXT 0x20D4 |
Definition at line 107 of file qgl_x11.cpp.
Referenced by QGLContextPrivate::bindTextureFromNativePixmap().
#define INT32 dummy_INT32 |
Definition at line 68 of file qgl_x11.cpp.
#define INT8 dummy_INT8 |
Definition at line 67 of file qgl_x11.cpp.
typedef QHash<int, QCMapEntry *> CMapEntryHash |
Definition at line 162 of file qgl_x11.cpp.
typedef QHash<int, QMap<int, QRgb> > GLCMapHash |
Definition at line 163 of file qgl_x11.cpp.
|
static |
Definition at line 421 of file qgl_x11.cpp.
Referenced by QGLContext::tryVisual().
|
static |
Definition at line 183 of file qgl_x11.cpp.
Referenced by qt_gl_choose_cmap().
|
static |
Definition at line 288 of file qgl_x11.cpp.
Referenced by qglx_getProcAddress().
|
static |
Definition at line 1629 of file qgl_x11.cpp.
|
static |
This is basically a substitute for glxUseXFont() which can only handle XLFD fonts.
Definition at line 1073 of file qgl_x11.cpp.
void* qglx_getProcAddress | ( | const char * | procName | ) |
Definition at line 350 of file qgl_x11.cpp.
Referenced by buildSpec(), qt_resolve_pbuffer_extensions(), and QGLContext::tryVisual().
|
static |
Definition at line 1608 of file qgl_x11.cpp.
Referenced by qCanAllocColors().
Colormap qt_gl_choose_cmap | ( | Display * | dpy, |
XVisualInfo * | vi | ||
) |
Definition at line 196 of file qgl_x11.cpp.
Referenced by buildSpec(), and QGLOverlayWidget::paintGL().
|
static |
Definition at line 991 of file qgl_x11.cpp.
Drawable qt_x11Handle | ( | const QPaintDevice * | pd | ) |
Returns the X11 Drawable of the paint device.
0 is returned if it can't be obtained.
Definition at line 61 of file qpaintdevice_x11.cpp.
Referenced by buildSpec().
|
related |
Referenced by buildSpec(), and QGLContext::tryVisual().
|
static |
Definition at line 165 of file qgl_x11.cpp.
Referenced by qt_gl_choose_cmap().
|
static |
Definition at line 164 of file qgl_x11.cpp.
Referenced by qt_gl_choose_cmap().
|
static |
Definition at line 285 of file qgl_x11.cpp.
|
static |
Definition at line 286 of file qgl_x11.cpp.
Referenced by find_trans_colors(), and qglx_getProcAddress().