Ignore:
Timestamp:
May 5, 2011, 5:36:53 AM (14 years ago)
Author:
Dmitry A. Kuminov
Message:

trunk: Merged in qt 4.7.2 sources from branches/vendor/nokia/qt.

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk

  • trunk/src/gui/egl/qeglproperties_p.h

    r769 r846  
    11/****************************************************************************
    22**
    3 ** Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies).
     3** Copyright (C) 2011 Nokia Corporation and/or its subsidiary(-ies).
    44** All rights reserved.
    55** Contact: Nokia Corporation (qt-info@nokia.com)
     
    5757#include <QtGui/qimage.h>
    5858
    59 QT_BEGIN_INCLUDE_NAMESPACE
    60 
    61 #ifndef QT_NO_EGL
    62 #if defined(QT_OPENGL_ES_2)
    63 #   include <GLES2/gl2.h>
    64 #endif
    65 
    66 #if defined(QT_GLES_EGL)
    67 #   include <GLES/egl.h>
    68 #else
    69 #   include <EGL/egl.h>
    70 #endif
    71 #else
    72 
    73 //types from egltypes.h for compiling stub without EGL headers
    74 typedef int EGLBoolean;
    75 typedef int EGLint;
    76 typedef int EGLenum;
    77 typedef int    NativeDisplayType;
    78 typedef void*  NativeWindowType;
    79 typedef void*  NativePixmapType;
    80 typedef int EGLDisplay;
    81 typedef int EGLConfig;
    82 typedef int EGLSurface;
    83 typedef int EGLContext;
    84 typedef int EGLClientBuffer;
    85 #define EGL_NONE            0x3038  /* Attrib list terminator */
    86 
    87 #endif
    88 
    89 
    90 
    91 #if defined(Q_WS_X11)
    92 // If <EGL/egl.h> included <X11/Xlib.h>, then the global namespace
    93 // may have been polluted with X #define's.  The following makes sure
    94 // the X11 headers were included properly and then cleans things up.
    95 #include <X11/Xlib.h>
    96 #include <X11/Xutil.h>
    97 #undef Bool
    98 #undef Status
    99 #undef None
    100 #undef KeyPress
    101 #undef KeyRelease
    102 #undef FocusIn
    103 #undef FocusOut
    104 #undef Type
    105 #undef FontChange
    106 #undef CursorShape
    107 #endif
    108 
    109 QT_END_INCLUDE_NAMESPACE
     59#include <QtGui/private/qegl_p.h>
    11060
    11161QT_BEGIN_NAMESPACE
    112 
    113 namespace QEgl {
    114     enum API
    115     {
    116         OpenGL,
    117         OpenVG
    118     };
    119 
    120     enum PixelFormatMatch
    121     {
    122         ExactPixelFormat,
    123         BestPixelFormat
    124     };
    125 }
    12662
    12763class QX11Info;
     
    14783    void setVisualFormat(const QX11Info *xinfo);
    14884#endif
     85    void setDeviceType(int devType);
     86    void setPaintDeviceFormat(QPaintDevice *dev);
    14987    void setRenderableType(QEgl::API api);
    150 
    151     void setPaintDeviceFormat(QPaintDevice *dev);
    15288
    15389    bool reduceConfiguration();
    15490
    15591    QString toString() const;
    156 
    157     static void dumpAllConfigs();
    15892
    15993private:
Note: See TracChangeset for help on using the changeset viewer.