1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 12:28:12 +00:00

LibGL: Implement glDrawPixels and add stub for glBitmap

This commit is contained in:
Jelle Raaijmakers 2021-12-01 17:19:22 +01:00 committed by Andreas Kling
parent c2960e68a8
commit 401472c9a4
7 changed files with 149 additions and 1 deletions

View file

@ -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();