mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-08 09:09:43 +00:00
LibGL: Implement glDrawPixels
and add stub for glBitmap
This commit is contained in:
parent
c2960e68a8
commit
401472c9a4
Notes:
sideshowbarker
2024-07-17 22:51:02 +09:00
Author: https://github.com/gmta
Commit: 401472c9a4
Pull-request: https://github.com/SerenityOS/serenity/pull/11154
Reviewed-by: https://github.com/sunverwerth ✅
7 changed files with 149 additions and 1 deletions
|
@ -604,6 +604,14 @@ void SoftwareRasterizer::clear_depth(float depth)
|
|||
m_depth_buffer->clear(depth);
|
||||
}
|
||||
|
||||
void SoftwareRasterizer::blit(Gfx::Bitmap const& source, int x, int y)
|
||||
{
|
||||
wait_for_all_threads();
|
||||
|
||||
Gfx::Painter painter { *m_render_target };
|
||||
painter.blit({ x, y }, source, source.rect(), 1.0f, true);
|
||||
}
|
||||
|
||||
void SoftwareRasterizer::blit_to(Gfx::Bitmap& target)
|
||||
{
|
||||
wait_for_all_threads();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue