1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-21 23:55:07 +00:00
serenity/Userland/Libraries/LibAccelGfx/Context.h
Aliaksandr Kalenik 61a2e59d87 LibAccelGfx+WebContent: Add GPU painter support on macOS
With these changes it is now possible to create OpenGL context on macOS
and run GPU-painter. For now only QT client has a CLI param that turns
it on though.
2023-11-16 15:13:16 +01:00

32 lines
496 B
C++

/*
* Copyright (c) 2023, Aliaksandr Kalenik <kalenik.aliaksandr@gmail.com>
*
* SPDX-License-Identifier: BSD-2-Clause
*/
#pragma once
#include <AK/Assertions.h>
#include <AK/OwnPtr.h>
#ifndef AK_OS_MACOS
// Make sure egl.h doesn't give us definitions from X11 headers
# define EGL_NO_X11
# include <EGL/egl.h>
# undef EGL_NO_X11
#endif
namespace AccelGfx {
class Context {
public:
static Context& the();
static OwnPtr<Context> create();
Context()
{
}
};
}