LibWeb/WebGL: Implement createFramebuffer

This commit is contained in:
Luke Wilde 2024-12-05 10:55:34 +00:00 committed by Alexander Kalenik
commit c5e9615c29
Notes: github-actions[bot] 2024-12-05 20:43:53 +00:00
4 changed files with 21 additions and 4 deletions

View file

@ -15,10 +15,12 @@ class WebGLFramebuffer final : public WebGLObject {
GC_DECLARE_ALLOCATOR(WebGLFramebuffer);
public:
static GC::Ptr<WebGLFramebuffer> create(JS::Realm& realm, GLuint handle);
virtual ~WebGLFramebuffer();
protected:
explicit WebGLFramebuffer(JS::Realm&);
explicit WebGLFramebuffer(JS::Realm&, GLuint handle);
};
}