mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-04-26 22:38:51 +00:00
LibWeb/WebGL: Set prototypes of the WebGL objects
This commit is contained in:
parent
2e1702a14b
commit
a14cd5dab8
Notes:
github-actions[bot]
2024-12-05 20:42:31 +00:00
Author: https://github.com/Lubrsi
Commit: a14cd5dab8
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/2791
Reviewed-by: https://github.com/gmta
Reviewed-by: https://github.com/shannonbooth
17 changed files with 120 additions and 27 deletions
|
@ -1,5 +1,6 @@
|
|||
/*
|
||||
* Copyright (c) 2024, Jelle Raaijmakers <jelle@ladybird.org>
|
||||
* Copyright (c) 2024, Luke Wilde <luke@ladybird.org>
|
||||
*
|
||||
* SPDX-License-Identifier: BSD-2-Clause
|
||||
*/
|
||||
|
@ -15,12 +16,14 @@ class WebGLRenderbuffer final : public WebGLObject {
|
|||
GC_DECLARE_ALLOCATOR(WebGLRenderbuffer);
|
||||
|
||||
public:
|
||||
static GC::Ptr<WebGLRenderbuffer> create(JS::Realm& realm, GLuint handle);
|
||||
static GC::Ref<WebGLRenderbuffer> create(JS::Realm& realm, GLuint handle);
|
||||
|
||||
virtual ~WebGLRenderbuffer();
|
||||
|
||||
protected:
|
||||
explicit WebGLRenderbuffer(JS::Realm&, GLuint handle);
|
||||
|
||||
virtual void initialize(JS::Realm&) override;
|
||||
};
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue