diff options
| author | Laszlo Agocs <laszlo.agocs@qt.io> | 2023-03-22 16:36:36 +0100 |
|---|---|---|
| committer | Laszlo Agocs <laszlo.agocs@qt.io> | 2023-03-23 15:13:02 +0100 |
| commit | 3b015718b0d156bbedafd3f83f069ce5a360d5cb (patch) | |
| tree | 307759c4ef951f9e52d3b887865a122aa5a7805a /examples/opengl/qopenglwindow/background_renderer.h | |
| parent | a956b7a9b7dc5329ac1466c21dc74d471e7ca6f1 (diff) | |
Move hellowindow and qopenglwindow to be a manual tests
Pick-to: 6.5
Change-Id: I8d1517ee57df9b2dee0486f47562b0754e9dcbad
Reviewed-by: Christian Strømme <christian.stromme@qt.io>
Diffstat (limited to 'examples/opengl/qopenglwindow/background_renderer.h')
| -rw-r--r-- | examples/opengl/qopenglwindow/background_renderer.h | 46 |
1 files changed, 0 insertions, 46 deletions
diff --git a/examples/opengl/qopenglwindow/background_renderer.h b/examples/opengl/qopenglwindow/background_renderer.h deleted file mode 100644 index 76c0bec6a8f..00000000000 --- a/examples/opengl/qopenglwindow/background_renderer.h +++ /dev/null @@ -1,46 +0,0 @@ -// Copyright (C) 2016 The Qt Company Ltd. -// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause - -#ifndef FRAGMENT_TOY_H -#define FRAGMENT_TOY_H - -#include <QObject> -#include <QFile> -#include <QDateTime> -#if QT_CONFIG(filesystemwatcher) -#include <QFileSystemWatcher> -#endif -#include <QOpenGLVertexArrayObject> -#include <QOpenGLBuffer> -#include <QOpenGLShaderProgram> -#include <QOpenGLFunctions> - -#include <memory> - -class FragmentToy : public QObject, protected QOpenGLFunctions -{ - Q_OBJECT -public: - explicit FragmentToy(const QString &fragmentSource, QObject *parent = nullptr); - ~FragmentToy(); - - void draw(const QSize &windowSize); - -private: - void fileChanged(const QString &path); - bool m_recompile_shaders; -#if QT_CONFIG(filesystemwatcher) - QFileSystemWatcher m_watcher; -#endif - QString m_fragment_file; - QDateTime m_fragment_file_last_modified; - - std::unique_ptr<QOpenGLShaderProgram> m_program; - std::unique_ptr<QOpenGLShader> m_vertex_shader; - std::unique_ptr<QOpenGLShader> m_fragment_shader; - QOpenGLVertexArrayObject m_vao; - QOpenGLBuffer m_vertex_buffer; - GLuint m_vertex_coord_pos; -}; - -#endif //FRAGMENT_TOY_H |
