1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 18:47:34 +00:00

LibGL: Implement glReadPixels()

This commit is contained in:
Stephan Unverwerth 2021-05-24 17:52:24 +02:00 committed by Linus Groh
parent d6c84ca4df
commit e54d96d53e
3 changed files with 249 additions and 0 deletions

View file

@ -38,6 +38,8 @@ public:
void wait_for_all_threads() const;
void set_options(const RasterizerOptions&);
RasterizerOptions options() const { return m_options; }
Gfx::RGBA32 get_backbuffer_pixel(int x, int y);
float get_depthbuffer_value(int x, int y);
private:
RefPtr<Gfx::Bitmap> m_render_target;