5#include <EGL/eglvivante.h>
9extern "C" void VivanteInit(
void);
22 if (multiBufferNotEnabledYet && multiBuffer) {
23 qWarning() <<
"QEglFSVivIntegration will set environment variable FB_MULTI_BUFFER=2 to enable double buffering and vsync.\n"
24 <<
"If this is not desired, you can override this via: export QT_EGLFS_IMX6_NO_FB_MULTI_BUFFER=1";
25 qputenv(
"FB_MULTI_BUFFER",
"2");
30 mNativeDisplay = fbGetDisplay();
32 mNativeDisplay =
static_cast<EGLNativeDisplayType
>(fbGetDisplayByIndex(
framebufferIndex()));
35 fbGetDisplayGeometry(mNativeDisplay, &
width, &
height);
47 return mNativeDisplay;
55 EGLNativeWindowType eglWindow =
static_cast<EGLNativeWindowType
>(fbCreateWindow(mNativeDisplay, 0, 0,
size.width(),
size.height()));
virtual void platformInit()
virtual int framebufferIndex() const
void destroyNativeWindow(EGLNativeWindowType window) override
QSize screenSize() const override
EGLNativeDisplayType platformDisplay() const override
void platformInit() override
EGLNativeWindowType createNativeWindow(QPlatformWindow *window, const QSize &size, const QSurfaceFormat &format) override
constexpr void setWidth(int w) noexcept
Sets the width to the given width.
constexpr void setHeight(int h) noexcept
Sets the height to the given height.
Combined button and popup list for selecting options.
GLint GLsizei GLsizei height
GLenum GLuint GLintptr GLsizeiptr size
[1]
GLint GLsizei GLsizei GLenum format
bool qputenv(const char *varName, QByteArrayView raw)
Q_CORE_EXPORT bool qEnvironmentVariableIsEmpty(const char *varName) noexcept