mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-06-08 13:37:10 +09:00
LibWeb/WebGL: Implement createRenderbuffer
This commit is contained in:
parent
135facb1b5
commit
d185c2c28c
Notes:
github-actions[bot]
2024-12-05 20:43:32 +00:00
Author: https://github.com/Lubrsi
Commit: d185c2c28c
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/2791
Reviewed-by: https://github.com/gmta
Reviewed-by: https://github.com/shannonbooth
4 changed files with 21 additions and 4 deletions
|
@ -4,6 +4,7 @@
|
|||
* SPDX-License-Identifier: BSD-2-Clause
|
||||
*/
|
||||
|
||||
#include <LibJS/Runtime/Realm.h>
|
||||
#include <LibWeb/Bindings/WebGLRenderbufferPrototype.h>
|
||||
#include <LibWeb/WebGL/WebGLRenderbuffer.h>
|
||||
|
||||
|
@ -11,8 +12,13 @@ namespace Web::WebGL {
|
|||
|
||||
GC_DEFINE_ALLOCATOR(WebGLRenderbuffer);
|
||||
|
||||
WebGLRenderbuffer::WebGLRenderbuffer(JS::Realm& realm)
|
||||
: WebGLObject(realm, 0)
|
||||
GC::Ptr<WebGLRenderbuffer> WebGLRenderbuffer::create(JS::Realm& realm, GLuint handle)
|
||||
{
|
||||
return realm.heap().allocate<WebGLRenderbuffer>(realm, handle);
|
||||
}
|
||||
|
||||
WebGLRenderbuffer::WebGLRenderbuffer(JS::Realm& realm, GLuint handle)
|
||||
: WebGLObject(realm, handle)
|
||||
{
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue