KWin
Loading...
Searching...
No Matches
eglimagetexture.h
Go to the documentation of this file.
1/*
2 KWin - the KDE window manager
3 This file is part of the KDE project.
4
5 SPDX-FileCopyrightText: 2020 Aleix Pol Gonzalez <aleixpol@kde.org>
6
7 SPDX-License-Identifier: GPL-2.0-or-later
8*/
9
10#pragma once
11
12#include "opengl/gltexture.h"
13
14typedef void *EGLImageKHR;
15typedef void *EGLClientBuffer;
16
17namespace KWin
18{
19
20class EglDisplay;
21
22class KWIN_EXPORT EGLImageTexture : public GLTexture
23{
24public:
25 explicit EGLImageTexture(EglDisplay *display, EGLImageKHR image, uint textureId, int internalFormat, const QSize &size, uint32_t target);
26 ~EGLImageTexture() override;
27
28 static std::shared_ptr<EGLImageTexture> create(EglDisplay *display, EGLImageKHR image, int internalFormat, const QSize &size, bool externalOnly);
29
32};
33
34}
EglDisplay *const m_display
void * EGLClientBuffer
void * EGLImageKHR
GLenum internalFormat
Definition gltexture.cpp:48