mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 20:47:45 +00:00
LibAccelGfx+Meta: Introduce OpenGL painting library
This change introduces a new 2D graphics library that uses OpenGL to perform painting operations. For now, it has extremely limited functionality and supports only rectangle painting, but we have to start somewhere. Since this library is intended to be used by LibWeb, where the WebContent process does not have an associated window, painting occurs in an offscreen buffer created using EGL. For now it is only possible to compile this library on linux. Offscreen context creation on SerenityOS and MacOS will have to be implemented separately in the future. Co-Authored-By: Andreas Kling <awesomekling@gmail.com>
This commit is contained in:
parent
56e8f52cb3
commit
95c154d9bd
11 changed files with 463 additions and 2 deletions
14
Userland/Libraries/LibAccelGfx/Forward.h
Normal file
14
Userland/Libraries/LibAccelGfx/Forward.h
Normal file
|
@ -0,0 +1,14 @@
|
|||
/*
|
||||
* Copyright (c) 2023, Andreas Kling <kling@serenityos.org>
|
||||
*
|
||||
* SPDX-License-Identifier: BSD-2-Clause
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
|
||||
namespace AccelGfx {
|
||||
|
||||
class Canvas;
|
||||
class Painter;
|
||||
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue