Krita Source Code Documentation
Loading...
Searching...
No Matches
KisOpenGLSync.h
Go to the documentation of this file.
1/*
2 * SPDX-FileCopyrightText: 2021 Dmitry Kazakov <dimula73@gmail.com>
3 *
4 * SPDX-License-Identifier: GPL-2.0-or-later
5 */
6
7#ifndef KISOPENGLSYNC_H
8#define KISOPENGLSYNC_H
9
10#ifndef Q_OS_MACOS
11#include <QOpenGLFunctions>
12#else
13#include <QOpenGLFunctions_3_2_Core>
14#endif
15
16#include <opengl/kis_opengl.h>
17
19{
20public:
23
24 bool isSignaled();
25
26 static void init(QOpenGLContext *ctx);
27
28private:
29 GLsync m_syncObject = 0;
30};
31
32#endif // KISOPENGLSYNC_H
static void init(QOpenGLContext *ctx)
GLsync m_syncObject