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:
parent
c2960e68a8
commit
401472c9a4
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