Move QOpenGLTexture and related classes from QtGui to QtOpenGL
Task-number: QTBUG-74409 Change-Id: Ied825dd7cb92365505a4aa43fd67488024160341 Reviewed-by: Laszlo Agocs <laszlo.agocs@qt.io> Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
This commit is contained in:
parent
85e3e88e1e
commit
2344e5cc31
@ -17,10 +17,6 @@ qtConfig(opengl) {
|
|||||||
opengl/qopenglversionfunctionsfactory_p.h \
|
opengl/qopenglversionfunctionsfactory_p.h \
|
||||||
opengl/qopenglvertexarrayobject.h \
|
opengl/qopenglvertexarrayobject.h \
|
||||||
opengl/qopengltextureblitter.h \
|
opengl/qopengltextureblitter.h \
|
||||||
opengl/qopengltexture.h \
|
|
||||||
opengl/qopengltexture_p.h \
|
|
||||||
opengl/qopengltexturehelper_p.h \
|
|
||||||
opengl/qopenglpixeltransferoptions.h \
|
|
||||||
opengl/qopenglextrafunctions.h \
|
opengl/qopenglextrafunctions.h \
|
||||||
opengl/qopenglprogrambinarycache_p.h
|
opengl/qopenglprogrambinarycache_p.h
|
||||||
|
|
||||||
@ -33,9 +29,6 @@ qtConfig(opengl) {
|
|||||||
opengl/qopenglversionfunctionsfactory.cpp \
|
opengl/qopenglversionfunctionsfactory.cpp \
|
||||||
opengl/qopenglvertexarrayobject.cpp \
|
opengl/qopenglvertexarrayobject.cpp \
|
||||||
opengl/qopengltextureblitter.cpp \
|
opengl/qopengltextureblitter.cpp \
|
||||||
opengl/qopengltexture.cpp \
|
|
||||||
opengl/qopengltexturehelper.cpp \
|
|
||||||
opengl/qopenglpixeltransferoptions.cpp \
|
|
||||||
opengl/qopenglprogrambinarycache.cpp
|
opengl/qopenglprogrambinarycache.cpp
|
||||||
|
|
||||||
!qtConfig(opengles2) {
|
!qtConfig(opengles2) {
|
||||||
|
@ -19,7 +19,11 @@ HEADERS += \
|
|||||||
qopenglpaintdevice.h \
|
qopenglpaintdevice.h \
|
||||||
qopenglpaintdevice_p.h \
|
qopenglpaintdevice_p.h \
|
||||||
qopenglpaintengine_p.h \
|
qopenglpaintengine_p.h \
|
||||||
|
qopenglpixeltransferoptions.h \
|
||||||
qopenglshadercache_p.h \
|
qopenglshadercache_p.h \
|
||||||
|
qopengltexture.h \
|
||||||
|
qopengltexture_p.h \
|
||||||
|
qopengltexturehelper_p.h \
|
||||||
qopengltexturecache_p.h \
|
qopengltexturecache_p.h \
|
||||||
qopengltextureglyphcache_p.h \
|
qopengltextureglyphcache_p.h \
|
||||||
qopengltextureuploader_p.h \
|
qopengltextureuploader_p.h \
|
||||||
@ -33,6 +37,9 @@ SOURCES += \
|
|||||||
qopenglgradientcache.cpp \
|
qopenglgradientcache.cpp \
|
||||||
qopenglpaintdevice.cpp \
|
qopenglpaintdevice.cpp \
|
||||||
qopenglpaintengine.cpp \
|
qopenglpaintengine.cpp \
|
||||||
|
qopenglpixeltransferoptions.cpp \
|
||||||
|
qopengltexture.cpp \
|
||||||
|
qopengltexturehelper.cpp \
|
||||||
qopengltexturecache.cpp \
|
qopengltexturecache.cpp \
|
||||||
qopengltextureglyphcache.cpp \
|
qopengltextureglyphcache.cpp \
|
||||||
qopengltextureuploader.cpp \
|
qopengltextureuploader.cpp \
|
||||||
|
@ -3,7 +3,7 @@
|
|||||||
** Copyright (C) 2013 Klaralvdalens Datakonsult AB (KDAB).
|
** Copyright (C) 2013 Klaralvdalens Datakonsult AB (KDAB).
|
||||||
** Contact: https://www.qt.io/licensing/
|
** Contact: https://www.qt.io/licensing/
|
||||||
**
|
**
|
||||||
** This file is part of the QtGui module of the Qt Toolkit.
|
** This file is part of the QtOpenGL module of the Qt Toolkit.
|
||||||
**
|
**
|
||||||
** $QT_BEGIN_LICENSE:LGPL$
|
** $QT_BEGIN_LICENSE:LGPL$
|
||||||
** Commercial License Usage
|
** Commercial License Usage
|
@ -3,7 +3,7 @@
|
|||||||
** Copyright (C) 2013 Klaralvdalens Datakonsult AB (KDAB).
|
** Copyright (C) 2013 Klaralvdalens Datakonsult AB (KDAB).
|
||||||
** Contact: https://www.qt.io/licensing/
|
** Contact: https://www.qt.io/licensing/
|
||||||
**
|
**
|
||||||
** This file is part of the QtGui module of the Qt Toolkit.
|
** This file is part of the QtOpenGL module of the Qt Toolkit.
|
||||||
**
|
**
|
||||||
** $QT_BEGIN_LICENSE:LGPL$
|
** $QT_BEGIN_LICENSE:LGPL$
|
||||||
** Commercial License Usage
|
** Commercial License Usage
|
||||||
@ -40,7 +40,7 @@
|
|||||||
#ifndef QOPENGLPIXELUPLOADOPTIONS_H
|
#ifndef QOPENGLPIXELUPLOADOPTIONS_H
|
||||||
#define QOPENGLPIXELUPLOADOPTIONS_H
|
#define QOPENGLPIXELUPLOADOPTIONS_H
|
||||||
|
|
||||||
#include <QtGui/qtguiglobal.h>
|
#include <QtOpenGL/qtopenglglobal.h>
|
||||||
|
|
||||||
#if !defined(QT_NO_OPENGL)
|
#if !defined(QT_NO_OPENGL)
|
||||||
|
|
||||||
@ -50,7 +50,7 @@ QT_BEGIN_NAMESPACE
|
|||||||
|
|
||||||
class QOpenGLPixelTransferOptionsData;
|
class QOpenGLPixelTransferOptionsData;
|
||||||
|
|
||||||
class Q_GUI_EXPORT QOpenGLPixelTransferOptions
|
class Q_OPENGL_EXPORT QOpenGLPixelTransferOptions
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
QOpenGLPixelTransferOptions();
|
QOpenGLPixelTransferOptions();
|
@ -3,7 +3,7 @@
|
|||||||
** Copyright (C) 2013 Klaralvdalens Datakonsult AB (KDAB).
|
** Copyright (C) 2013 Klaralvdalens Datakonsult AB (KDAB).
|
||||||
** Contact: https://www.qt.io/licensing/
|
** Contact: https://www.qt.io/licensing/
|
||||||
**
|
**
|
||||||
** This file is part of the QtGui module of the Qt Toolkit.
|
** This file is part of the QtOpenGL module of the Qt Toolkit.
|
||||||
**
|
**
|
||||||
** $QT_BEGIN_LICENSE:LGPL$
|
** $QT_BEGIN_LICENSE:LGPL$
|
||||||
** Commercial License Usage
|
** Commercial License Usage
|
||||||
@ -40,7 +40,7 @@
|
|||||||
#ifndef QOPENGLABSTRACTTEXTURE_H
|
#ifndef QOPENGLABSTRACTTEXTURE_H
|
||||||
#define QOPENGLABSTRACTTEXTURE_H
|
#define QOPENGLABSTRACTTEXTURE_H
|
||||||
|
|
||||||
#include <QtGui/qtguiglobal.h>
|
#include <QtOpenGL/qtopenglglobal.h>
|
||||||
|
|
||||||
#ifndef QT_NO_OPENGL
|
#ifndef QT_NO_OPENGL
|
||||||
|
|
||||||
@ -54,7 +54,7 @@ class QDebug;
|
|||||||
class QOpenGLTexturePrivate;
|
class QOpenGLTexturePrivate;
|
||||||
class QOpenGLPixelTransferOptions;
|
class QOpenGLPixelTransferOptions;
|
||||||
|
|
||||||
class Q_GUI_EXPORT QOpenGLTexture
|
class Q_OPENGL_EXPORT QOpenGLTexture
|
||||||
{
|
{
|
||||||
Q_GADGET
|
Q_GADGET
|
||||||
public:
|
public:
|
||||||
@ -641,7 +641,7 @@ public:
|
|||||||
float levelofDetailBias() const;
|
float levelofDetailBias() const;
|
||||||
|
|
||||||
#ifndef QT_NO_DEBUG_STREAM
|
#ifndef QT_NO_DEBUG_STREAM
|
||||||
friend Q_GUI_EXPORT QDebug operator<<(QDebug dbg, const QOpenGLTexture *t);
|
friend Q_OPENGL_EXPORT QDebug operator<<(QDebug dbg, const QOpenGLTexture *t);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
private:
|
private:
|
||||||
@ -653,7 +653,7 @@ private:
|
|||||||
Q_DECLARE_OPERATORS_FOR_FLAGS(QOpenGLTexture::Features)
|
Q_DECLARE_OPERATORS_FOR_FLAGS(QOpenGLTexture::Features)
|
||||||
|
|
||||||
#ifndef QT_NO_DEBUG_STREAM
|
#ifndef QT_NO_DEBUG_STREAM
|
||||||
Q_GUI_EXPORT QDebug operator<<(QDebug debug, const QOpenGLTexture *t);
|
Q_OPENGL_EXPORT QDebug operator<<(QDebug debug, const QOpenGLTexture *t);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
QT_END_NAMESPACE
|
QT_END_NAMESPACE
|
@ -3,7 +3,7 @@
|
|||||||
** Copyright (C) 2013 Klaralvdalens Datakonsult AB (KDAB).
|
** Copyright (C) 2013 Klaralvdalens Datakonsult AB (KDAB).
|
||||||
** Contact: https://www.qt.io/licensing/
|
** Contact: https://www.qt.io/licensing/
|
||||||
**
|
**
|
||||||
** This file is part of the QtGui module of the Qt Toolkit.
|
** This file is part of the QtOpenGL module of the Qt Toolkit.
|
||||||
**
|
**
|
||||||
** $QT_BEGIN_LICENSE:LGPL$
|
** $QT_BEGIN_LICENSE:LGPL$
|
||||||
** Commercial License Usage
|
** Commercial License Usage
|
||||||
@ -53,7 +53,7 @@
|
|||||||
|
|
||||||
#ifndef QT_NO_OPENGL
|
#ifndef QT_NO_OPENGL
|
||||||
|
|
||||||
#include <QtGui/private/qtguiglobal_p.h>
|
#include <QtOpenGL/qtopenglglobal.h>
|
||||||
#include "private/qobject_p.h"
|
#include "private/qobject_p.h"
|
||||||
#include "qopengltexture.h"
|
#include "qopengltexture.h"
|
||||||
#include "qopengl.h"
|
#include "qopengl.h"
|
@ -3,7 +3,7 @@
|
|||||||
** Copyright (C) 2013 Klaralvdalens Datakonsult AB (KDAB).
|
** Copyright (C) 2013 Klaralvdalens Datakonsult AB (KDAB).
|
||||||
** Contact: https://www.qt.io/licensing/
|
** Contact: https://www.qt.io/licensing/
|
||||||
**
|
**
|
||||||
** This file is part of the QtGui module of the Qt Toolkit.
|
** This file is part of the QtOpenGL module of the Qt Toolkit.
|
||||||
**
|
**
|
||||||
** $QT_BEGIN_LICENSE:LGPL$
|
** $QT_BEGIN_LICENSE:LGPL$
|
||||||
** Commercial License Usage
|
** Commercial License Usage
|
@ -3,7 +3,7 @@
|
|||||||
** Copyright (C) 2013 Klaralvdalens Datakonsult AB (KDAB).
|
** Copyright (C) 2013 Klaralvdalens Datakonsult AB (KDAB).
|
||||||
** Contact: https://www.qt.io/licensing/
|
** Contact: https://www.qt.io/licensing/
|
||||||
**
|
**
|
||||||
** This file is part of the QtGui module of the Qt Toolkit.
|
** This file is part of the QtOpenGL module of the Qt Toolkit.
|
||||||
**
|
**
|
||||||
** $QT_BEGIN_LICENSE:LGPL$
|
** $QT_BEGIN_LICENSE:LGPL$
|
||||||
** Commercial License Usage
|
** Commercial License Usage
|
||||||
@ -51,7 +51,7 @@
|
|||||||
// We mean it.
|
// We mean it.
|
||||||
//
|
//
|
||||||
|
|
||||||
#include <QtGui/private/qtguiglobal_p.h>
|
#include <QtOpenGL/qtopenglglobal.h>
|
||||||
|
|
||||||
#ifndef QT_NO_OPENGL
|
#ifndef QT_NO_OPENGL
|
||||||
|
|
@ -39,7 +39,9 @@
|
|||||||
|
|
||||||
#include "qvkconvenience_p.h"
|
#include "qvkconvenience_p.h"
|
||||||
|
|
||||||
#include <QOpenGLTexture>
|
#if QT_CONFIG(opengl)
|
||||||
|
#include <QtOpenGL/QOpenGLTexture>
|
||||||
|
#endif
|
||||||
|
|
||||||
QT_BEGIN_NAMESPACE
|
QT_BEGIN_NAMESPACE
|
||||||
|
|
||||||
|
@ -2,6 +2,8 @@ TARGET = QtVulkanSupport
|
|||||||
MODULE = vulkan_support
|
MODULE = vulkan_support
|
||||||
|
|
||||||
QT = core-private gui-private
|
QT = core-private gui-private
|
||||||
|
qtConfig(opengl): QT += opengl
|
||||||
|
|
||||||
CONFIG += static internal_module
|
CONFIG += static internal_module
|
||||||
|
|
||||||
DEFINES += QT_NO_CAST_FROM_ASCII
|
DEFINES += QT_NO_CAST_FROM_ASCII
|
||||||
|
@ -31,7 +31,7 @@
|
|||||||
#include "qwasmwindow.h"
|
#include "qwasmwindow.h"
|
||||||
#include "qwasmcompositor.h"
|
#include "qwasmcompositor.h"
|
||||||
|
|
||||||
#include <QtGui/qopengltexture.h>
|
#include <QtOpenGL/qopengltexture.h>
|
||||||
#include <QtGui/qmatrix4x4.h>
|
#include <QtGui/qmatrix4x4.h>
|
||||||
#include <QtGui/qpainter.h>
|
#include <QtGui/qpainter.h>
|
||||||
#include <private/qguiapplication_p.h>
|
#include <private/qguiapplication_p.h>
|
||||||
|
@ -31,7 +31,7 @@
|
|||||||
#include "qwasmwindow.h"
|
#include "qwasmwindow.h"
|
||||||
#include "qwasmstylepixmaps_p.h"
|
#include "qwasmstylepixmaps_p.h"
|
||||||
|
|
||||||
#include <QtGui/qopengltexture.h>
|
#include <QtOpenGL/qopengltexture.h>
|
||||||
|
|
||||||
#include <QtGui/private/qwindow_p.h>
|
#include <QtGui/private/qwindow_p.h>
|
||||||
#include <QtGui/qopenglcontext.h>
|
#include <QtGui/qopenglcontext.h>
|
||||||
|
@ -34,7 +34,6 @@
|
|||||||
#include <qpa/qplatformwindow.h>
|
#include <qpa/qplatformwindow.h>
|
||||||
|
|
||||||
#include <QtGui/qopengltextureblitter.h>
|
#include <QtGui/qopengltextureblitter.h>
|
||||||
#include <QtGui/qopengltexture.h>
|
|
||||||
#include <QtGui/qpalette.h>
|
#include <QtGui/qpalette.h>
|
||||||
#include <QtGui/qpainter.h>
|
#include <QtGui/qpainter.h>
|
||||||
|
|
||||||
@ -43,6 +42,7 @@ QT_BEGIN_NAMESPACE
|
|||||||
class QWasmWindow;
|
class QWasmWindow;
|
||||||
class QWasmScreen;
|
class QWasmScreen;
|
||||||
class QOpenGLContext;
|
class QOpenGLContext;
|
||||||
|
class QOpenGLTexture;
|
||||||
class QOpenGLTextureBlitter;
|
class QOpenGLTextureBlitter;
|
||||||
|
|
||||||
class QWasmCompositedWindow
|
class QWasmCompositedWindow
|
||||||
|
@ -50,6 +50,7 @@ wasmfonts.base = ../../../3rdparty/wasm
|
|||||||
RESOURCES += wasmfonts
|
RESOURCES += wasmfonts
|
||||||
|
|
||||||
qtConfig(opengl) {
|
qtConfig(opengl) {
|
||||||
|
QT += opengl
|
||||||
SOURCES += qwasmbackingstore.cpp
|
SOURCES += qwasmbackingstore.cpp
|
||||||
HEADERS += qwasmbackingstore.h
|
HEADERS += qwasmbackingstore.h
|
||||||
}
|
}
|
||||||
|
@ -221,6 +221,7 @@ qtConfig(gui) {
|
|||||||
SUBDIRS += src_openglextensions
|
SUBDIRS += src_openglextensions
|
||||||
SUBDIRS += src_opengl
|
SUBDIRS += src_opengl
|
||||||
src_plugins.depends += src_opengl
|
src_plugins.depends += src_opengl
|
||||||
|
src_platformsupport.depends += src_opengl
|
||||||
}
|
}
|
||||||
src_plugins.depends += src_gui src_platformsupport src_platformheaders
|
src_plugins.depends += src_gui src_platformsupport src_platformheaders
|
||||||
src_testlib.depends += src_gui # if QtGui is enabled, QtTest requires QtGui's headers
|
src_testlib.depends += src_gui # if QtGui is enabled, QtTest requires QtGui's headers
|
||||||
|
@ -27,13 +27,13 @@
|
|||||||
****************************************************************************/
|
****************************************************************************/
|
||||||
|
|
||||||
#include <QtOpenGL/QOpenGLPaintDevice>
|
#include <QtOpenGL/QOpenGLPaintDevice>
|
||||||
|
#include <QtOpenGL/QOpenGLTexture>
|
||||||
#include <QtGui/private/qopenglcontext_p.h>
|
#include <QtGui/private/qopenglcontext_p.h>
|
||||||
#include <QtGui/QOpenGLFramebufferObject>
|
#include <QtGui/QOpenGLFramebufferObject>
|
||||||
#include <QtGui/QOpenGLFunctions>
|
#include <QtGui/QOpenGLFunctions>
|
||||||
#include <QtGui/QOpenGLFunctions_4_2_Core>
|
#include <QtGui/QOpenGLFunctions_4_2_Core>
|
||||||
#include <QtGui/QOpenGLVertexArrayObject>
|
#include <QtGui/QOpenGLVertexArrayObject>
|
||||||
#include <QtGui/QOpenGLBuffer>
|
#include <QtGui/QOpenGLBuffer>
|
||||||
#include <QtGui/QOpenGLTexture>
|
|
||||||
#include <QtGui/QPainter>
|
#include <QtGui/QPainter>
|
||||||
#include <QtGui/QScreen>
|
#include <QtGui/QScreen>
|
||||||
#include <QtGui/QWindow>
|
#include <QtGui/QWindow>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user