File indexing completed on 2024-06-09 04:24:39
0001 /* 0002 * SPDX-FileCopyrightText: 2021 Dmitry Kazakov <dimula73@gmail.com> 0003 * 0004 * SPDX-License-Identifier: GPL-2.0-or-later 0005 */ 0006 0007 #ifndef KISOPENGLSYNC_H 0008 #define KISOPENGLSYNC_H 0009 0010 #ifndef Q_OS_MACOS 0011 #include <QOpenGLFunctions> 0012 #else 0013 #include <QOpenGLFunctions_3_2_Core> 0014 #endif 0015 0016 #include <opengl/kis_opengl.h> 0017 0018 class KisOpenGLSync 0019 { 0020 public: 0021 KisOpenGLSync(); 0022 ~KisOpenGLSync(); 0023 0024 bool isSignaled(); 0025 0026 static void init(QOpenGLContext *ctx); 0027 0028 private: 0029 GLsync m_syncObject = 0; 0030 }; 0031 0032 #endif // KISOPENGLSYNC_H