/* KWin - the KDE window manager This file is part of the KDE project. SPDX-FileCopyrightText: 2023 Xaver Hugl SPDX-License-Identifier: GPL-2.0-or-later */ #pragma once #include "kwin_export.h" #include #include #include #include #include namespace KWin { class KWIN_EXPORT GlLookUpTable { public: explicit GlLookUpTable(GLuint handle, size_t size); ~GlLookUpTable(); GLuint handle() const; size_t size() const; void bind(); static std::unique_ptr create(const std::function &func, size_t size); private: const GLuint m_handle; const size_t m_size; }; }