mirror of
https://github.com/RGBCube/serenity
synced 2025-07-28 16:57:36 +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
10
Userland/Libraries/LibAccelGfx/CMakeLists.txt
Normal file
10
Userland/Libraries/LibAccelGfx/CMakeLists.txt
Normal file
|
@ -0,0 +1,10 @@
|
|||
if (LINUX)
|
||||
set(SOURCES
|
||||
Canvas.cpp
|
||||
Context.cpp
|
||||
Painter.cpp
|
||||
)
|
||||
|
||||
serenity_lib(LibAccelGfx accelgfx)
|
||||
target_link_libraries(LibAccelGfx PRIVATE LibGfx GL EGL)
|
||||
endif()
|
Loading…
Add table
Add a link
Reference in a new issue