kwin/src/backends/drm/shadowbuffer.h
Vlad Zahorodnii d89501a079 Move platform backends to backends directory
This improves file organization in kwin by putting backends in a single
directory.

It also makes easier to discover kwin's low level components for new
contributors because the plugins directory may come as the last place to
look for. When one hears "plugin", the first thing that comes to mind is
regular plugins, not low level backends.
2021-11-02 09:02:41 +00:00

41 lines
659 B
C++

/*
KWin - the KDE window manager
This file is part of the KDE project.
SPDX-FileCopyrightText: 2021 Xaver Hugl <xaver.hugl@gmail.com>
SPDX-License-Identifier: GPL-2.0-or-later
*/
#pragma once
#include <QSize>
#include <kwinglutils.h>
namespace KWin
{
class DrmAbstractOutput;
class ShadowBuffer
{
public:
ShadowBuffer(const QSize &size);
~ShadowBuffer();
bool isComplete() const;
void bind();
void render(DrmAbstractOutput *output);
int texture() const;
QSize textureSize() const;
private:
GLuint m_texture;
GLuint m_framebuffer;
QScopedPointer<GLVertexBuffer> m_vbo;
QSize m_size;
};
}