blob: 24bda7b9ca6e67d9b1878962ab25c8f7ded52a38 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
|
// Copyright (C) 2016 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
#ifndef QEGLFSEMULATORINTEGRATION_H
#define QEGLFSEMULATORINTEGRATION_H
#include "private/qeglfsdeviceintegration_p.h"
#include <QtCore/QLoggingCategory>
#include <QtCore/QFunctionPointer>
typedef QByteArray (EGLAPIENTRYP PFNQGSGETDISPLAYSPROC) ();
typedef void (EGLAPIENTRYP PFNQGSSETDISPLAYPROC) (uint screen);
QT_BEGIN_NAMESPACE
Q_DECLARE_LOGGING_CATEGORY(qLcEglfsEmuDebug)
class QEglFSEmulatorIntegration : public QEglFSDeviceIntegration
{
public:
QEglFSEmulatorIntegration();
void platformInit() override;
void platformDestroy() override;
bool usesDefaultScreen() override;
void screenInit() override;
bool hasCapability(QPlatformIntegration::Capability cap) const override;
PFNQGSGETDISPLAYSPROC getDisplays;
PFNQGSSETDISPLAYPROC setDisplay;
EGLNativeWindowType createNativeWindow(QPlatformWindow *platformWindow, const QSize &size, const QSurfaceFormat &format) override;
};
QT_END_NAMESPACE
#endif // QEGLFSEMULATORINTEGRATION_H
|