mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 06:57:46 +00:00
LibGL: Implement GLContext::frontbuffer()
This commit is contained in:
parent
dad829de50
commit
757f506fda
1 changed files with 4 additions and 1 deletions
|
@ -1,6 +1,7 @@
|
|||
/*
|
||||
* Copyright (c) 2021, Stephan Unverwerth <s.unverwerth@serenityos.org>
|
||||
* Copyright (c) 2021-2022, Jesse Buhagiar <jooster669@gmail.com>
|
||||
* Copyright (c) 2022, Jelle Raaijmakers <jelle@gmta.nl>
|
||||
*
|
||||
* SPDX-License-Identifier: BSD-2-Clause
|
||||
*/
|
||||
|
@ -52,6 +53,9 @@ public:
|
|||
GLContext(RefPtr<GPU::Driver> driver, NonnullOwnPtr<GPU::Device>, Gfx::Bitmap&);
|
||||
~GLContext();
|
||||
|
||||
NonnullRefPtr<Gfx::Bitmap> frontbuffer() const { return m_frontbuffer; };
|
||||
void present();
|
||||
|
||||
void gl_begin(GLenum mode);
|
||||
void gl_clear(GLbitfield mask);
|
||||
void gl_clear_color(GLclampf red, GLclampf green, GLclampf blue, GLclampf alpha);
|
||||
|
@ -160,7 +164,6 @@ public:
|
|||
void gl_clip_plane(GLenum plane, GLdouble const* equation);
|
||||
void gl_array_element(GLint i);
|
||||
void gl_copy_tex_sub_image_2d(GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint x, GLint y, GLsizei width, GLsizei height);
|
||||
void present();
|
||||
|
||||
private:
|
||||
void sync_device_config();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue