KWin
Loading...
Searching...
No Matches
src
backends
x11
standalone
glxcontext.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: 2023 Xaver Hugl <xaver.hugl@gmail.com>
6
7
SPDX-License-Identifier: GPL-2.0-or-later
8
*/
9
#pragma once
10
#include "
opengl/openglcontext.h
"
11
#include "
x11_standalone_glx_backend.h
"
12
13
#include <epoxy/glx.h>
14
15
namespace
KWin
16
{
17
18
class
GlxContext
:
public
OpenGlContext
19
{
20
public
:
21
GlxContext
(
::Display
*display, GLXWindow window, GLXContext handle);
22
~GlxContext
()
override
;
23
24
bool
makeCurrent
()
const
;
25
bool
doneCurrent
()
const
;
26
27
static
std::unique_ptr<GlxContext>
create
(
GlxBackend
*backend, GLXFBConfig fbconfig, GLXWindow glxWindow);
28
29
private
:
30
::Display
*
const
m_display;
31
const
GLXWindow m_window;
32
const
GLXContext m_handle;
33
uint32_t m_vao = 0;
34
};
35
36
}
KWin::GlxBackend
OpenGL Backend using GLX over an X overlay window.
Definition
x11_standalone_glx_backend.h:81
KWin::GlxContext
Definition
glxcontext.h:19
KWin::GlxContext::create
static std::unique_ptr< GlxContext > create(GlxBackend *backend, GLXFBConfig fbconfig, GLXWindow glxWindow)
Definition
glxcontext.cpp:55
KWin::GlxContext::GlxContext
GlxContext(::Display *display, GLXWindow window, GLXContext handle)
Definition
glxcontext.cpp:19
KWin::GlxContext::makeCurrent
bool makeCurrent() const
Definition
glxcontext.cpp:41
KWin::GlxContext::~GlxContext
~GlxContext() override
Definition
glxcontext.cpp:32
KWin::GlxContext::doneCurrent
bool doneCurrent() const
Definition
glxcontext.cpp:50
KWin::OpenGlContext
Definition
openglcontext.h:23
KWin
Definition
activation_test.cpp:20
openglcontext.h
Display
struct _XDisplay Display
Definition
x11_standalone_egl_backend.h:18
x11_standalone_glx_backend.h
Generated on Sat Feb 17 2024 01:42:09 for KWin by
1.10.0