/* KWin - the KDE window manager This file is part of the KDE project. SPDX-FileCopyrightText: 2006-2007 Rivo Laks SPDX-FileCopyrightText: 2010, 2011 Martin Gräßlin SPDX-FileCopyrightText: 2023 Xaver Hugl SPDX-License-Identifier: GPL-2.0-or-later */ #pragma once #include "kwin_export.h" #include #include namespace KWin { class KWIN_EXPORT IndexBuffer { public: explicit IndexBuffer(); ~IndexBuffer(); void accommodate(size_t count); void bind(); private: GLuint m_buffer; size_t m_count = 0; std::vector m_data; }; }