File indexing completed on 2025-03-23 11:13:57
0001 /* 0002 KWin - the KDE window manager 0003 This file is part of the KDE project. 0004 0005 SPDX-FileCopyrightText: 2020 Aleix Pol Gonzalez <aleixpol@kde.org> 0006 0007 SPDX-License-Identifier: GPL-2.0-or-later 0008 */ 0009 0010 #pragma once 0011 0012 #include <kwingltexture.h> 0013 #include <kwinglutils_export.h> 0014 0015 typedef void *EGLImageKHR; 0016 typedef void *EGLDisplay; 0017 typedef void *EGLClientBuffer; 0018 0019 namespace KWin 0020 { 0021 0022 class KWINGLUTILS_EXPORT EGLImageTexture : public GLTexture 0023 { 0024 public: 0025 EGLImageTexture(EGLDisplay display, EGLImageKHR image, int internalFormat, const QSize &size); 0026 ~EGLImageTexture() override; 0027 0028 private: 0029 EGLImageKHR m_image; 0030 EGLDisplay m_display; 0031 }; 0032 0033 }