mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 04:27:45 +00:00
LibAccelGfx+LibWeb: Use framebuffer object instead of EGLs PBuffer
Framebuffer object is allocated using OpenGL's API and is not platform specific which means it could be used on both macOS and Linux unlike EGL specific PBuffer.
This commit is contained in:
parent
99caf4e649
commit
6d1a1daff9
12 changed files with 70 additions and 132 deletions
|
@ -45,6 +45,11 @@ struct VertexArray {
|
|||
GLuint id;
|
||||
};
|
||||
|
||||
struct Framebuffer {
|
||||
GLuint fbo_id;
|
||||
GLuint texture_id;
|
||||
};
|
||||
|
||||
void set_viewport(Gfx::IntRect);
|
||||
void enable_blending();
|
||||
|
||||
|
@ -89,4 +94,8 @@ VertexArray create_vertex_array();
|
|||
void bind_vertex_array(VertexArray const&);
|
||||
void delete_vertex_array(VertexArray const&);
|
||||
|
||||
Framebuffer create_framebuffer(Gfx::IntSize);
|
||||
void bind_framebuffer(Framebuffer const& framebuffer);
|
||||
void delete_framebuffer(Framebuffer const& framebuffer);
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue