mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-26 17:40:27 +00:00
eb7c3d16fb
A GPU (driver) is now responsible for reading and writing pixels from and to user data. The client (LibGL) is responsible for specifying how the user data must be interpreted or written to. This allows us to centralize all pixel format conversion in one class, `LibSoftGPU::PixelConverter`. For both the input and output image, it takes a specification containing the image dimensions, the pixel type and the selection (basically a clipping rect), and converts the pixels from the input image to the output image. Effectively this means we now support almost all OpenGL 1.5 formats, and all custom logic has disappeared from: - `glDrawPixels` - `glReadPixels` - `glTexImage2D` - `glTexSubImage2D` The new logic is still unoptimized, but on my machine I experienced no noticeable slowdown. :^)
18 lines
323 B
CMake
18 lines
323 B
CMake
set(SOURCES
|
|
ClipPlane.cpp
|
|
ContextParameter.cpp
|
|
GLAPI.cpp
|
|
GLContext.cpp
|
|
Image.cpp
|
|
Lighting.cpp
|
|
List.cpp
|
|
Matrix.cpp
|
|
Stencil.cpp
|
|
Tex/NameAllocator.cpp
|
|
Tex/Texture2D.cpp
|
|
Texture.cpp
|
|
Vertex.cpp
|
|
)
|
|
|
|
serenity_lib(LibGL gl)
|
|
target_link_libraries(LibGL LibM LibCore LibGfx LibGPU)
|