1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 06:58:11 +00:00
serenity/Userland/Libraries/LibGL
Jelle Raaijmakers db0616c67a LibSoftGPU: Generalize pixel buffers and standardize on BGRA8888
Between the OpenGL client and server, a lot of data type and color
conversion needs to happen. We are performing these conversions both in
`LibSoftGPU` and `LibGL`, which is not ideal. Additionally, some
concepts like the color, depth and stencil buffers should share their
logic but have separate implementations.

This is the first step towards generalizing our `LibSoftGPU` frame
buffer: a generalized `Typed3DBuffer` is introduced for arbitrary 3D
value storage and retrieval, and `Typed2DBuffer` wraps around it to
provide in an easy-to-use 2D pixel buffer. The color, depth and stencil
buffers are replaced by `Typed2DBuffer` and are now managed by the new
`FrameBuffer` class.

The `Image` class now uses multiple `Typed3DBuffer`s for layers and
mipmap levels. Additionally, the textures are now always stored as
BGRA8888, only converting between formats when reading or writing
pixels.

Ideally this refactor should have no functional changes, but some
graphical glitches in Grim Fandango seem to be fixed and most OpenGL
ports get an FPS boost on my machine. :^)
2022-02-22 23:48:59 +00:00
..
GL LibGL: Implement glMateriali{v} 2022-01-26 16:44:11 +01:00
Tex LibGL: Remove stubbed border from glTexImage2D 2021-12-27 11:58:43 +01:00
CMakeLists.txt LibGL: Rename GLMat.cpp to GLMatrix.cpp 2022-01-20 10:35:01 +01:00
GLBlend.cpp Everywhere: Use s.unverwerth@serenityos.org :^) 2021-05-29 12:30:08 +01:00
GLColor.cpp LibGL: Implement glColor4b 2022-01-20 10:35:01 +01:00
GLContext.cpp LibGL: Add context lifetime debug output 2022-01-14 21:38:09 +01:00
GLContext.h LibGL: Implement glMateriali{v} 2022-01-26 16:44:11 +01:00
GLDraw.cpp LibGL: Stub glPointSize 2022-01-11 23:47:42 +01:00
GLFog.cpp LibGL: Implement glFogi 2021-08-25 23:50:54 +04:30
GLLights.cpp LibGL: Implement glMateriali{v} 2022-01-26 16:44:11 +01:00
GLLists.cpp LibGL: Implement glIsList 2021-12-12 21:51:08 +01:00
GLMap.cpp LibGL: Stub lots of map-related methods 2021-12-27 11:58:43 +01:00
GLMatrix.cpp LibGL: Rename GLMat.cpp to GLMatrix.cpp 2022-01-20 10:35:01 +01:00
GLStencil.cpp LibGL+LibSoftGPU: Implement the stencil buffer 2022-01-17 12:49:00 +01:00
GLTexture.cpp LibGL: Implement glActiveTextureARB() 2022-01-19 19:57:49 +01:00
GLUtils.cpp LibGL: Add stubs for multitexturing and announce GL_ARB_multitexture 2022-01-19 19:57:49 +01:00
GLVert.cpp LibGL: Add stubs for multitexturing and announce GL_ARB_multitexture 2022-01-19 19:57:49 +01:00
GLVertexArrays.cpp LibGL: Implement glDrawElements 2021-08-14 12:49:29 +02:00
SoftwareGLContext.cpp LibSoftGPU: Generalize pixel buffers and standardize on BGRA8888 2022-02-22 23:48:59 +00:00
SoftwareGLContext.h LibGL: Implement glMateriali{v} 2022-01-26 16:44:11 +01:00