mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-21 15:10:19 +00:00
LibWeb: Add WebGLRenderbuffer
This commit is contained in:
parent
6b7d5dbec6
commit
d53cb9833b
Notes:
github-actions[bot]
2024-11-13 10:43:16 +00:00
Author: https://github.com/gmta Commit: https://github.com/LadybirdBrowser/ladybird/commit/d53cb9833b2 Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/2308
7 changed files with 55 additions and 0 deletions
|
@ -783,6 +783,7 @@ set(SOURCES
|
|||
WebGL/WebGLFramebuffer.cpp
|
||||
WebGL/WebGLObject.cpp
|
||||
WebGL/WebGLProgram.cpp
|
||||
WebGL/WebGLRenderbuffer.cpp
|
||||
WebGL/WebGLRenderingContext.cpp
|
||||
WebGL/WebGLRenderingContextBase.cpp
|
||||
WebIDL/AbstractOperations.cpp
|
||||
|
|
21
Libraries/LibWeb/WebGL/WebGLRenderbuffer.cpp
Normal file
21
Libraries/LibWeb/WebGL/WebGLRenderbuffer.cpp
Normal file
|
@ -0,0 +1,21 @@
|
|||
/*
|
||||
* Copyright (c) 2024, Jelle Raaijmakers <jelle@ladybird.org>
|
||||
*
|
||||
* SPDX-License-Identifier: BSD-2-Clause
|
||||
*/
|
||||
|
||||
#include <LibWeb/Bindings/WebGLRenderbufferPrototype.h>
|
||||
#include <LibWeb/WebGL/WebGLRenderbuffer.h>
|
||||
|
||||
namespace Web::WebGL {
|
||||
|
||||
JS_DEFINE_ALLOCATOR(WebGLRenderbuffer);
|
||||
|
||||
WebGLRenderbuffer::WebGLRenderbuffer(JS::Realm& realm)
|
||||
: WebGLObject(realm)
|
||||
{
|
||||
}
|
||||
|
||||
WebGLRenderbuffer::~WebGLRenderbuffer() = default;
|
||||
|
||||
}
|
24
Libraries/LibWeb/WebGL/WebGLRenderbuffer.h
Normal file
24
Libraries/LibWeb/WebGL/WebGLRenderbuffer.h
Normal file
|
@ -0,0 +1,24 @@
|
|||
/*
|
||||
* Copyright (c) 2024, Jelle Raaijmakers <jelle@ladybird.org>
|
||||
*
|
||||
* SPDX-License-Identifier: BSD-2-Clause
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
|
||||
#include <LibWeb/WebGL/WebGLObject.h>
|
||||
|
||||
namespace Web::WebGL {
|
||||
|
||||
class WebGLRenderbuffer final : public WebGLObject {
|
||||
WEB_PLATFORM_OBJECT(WebGLRenderbuffer, WebGLObject);
|
||||
JS_DECLARE_ALLOCATOR(WebGLRenderbuffer);
|
||||
|
||||
public:
|
||||
virtual ~WebGLRenderbuffer();
|
||||
|
||||
protected:
|
||||
explicit WebGLRenderbuffer(JS::Realm&);
|
||||
};
|
||||
|
||||
}
|
6
Libraries/LibWeb/WebGL/WebGLRenderbuffer.idl
Normal file
6
Libraries/LibWeb/WebGL/WebGLRenderbuffer.idl
Normal file
|
@ -0,0 +1,6 @@
|
|||
#import <WebGL/WebGLObject.idl>
|
||||
|
||||
// https://registry.khronos.org/webgl/specs/latest/1.0/#5.7
|
||||
[Exposed=(Window,Worker)]
|
||||
interface WebGLRenderbuffer : WebGLObject {
|
||||
};
|
|
@ -364,6 +364,7 @@ libweb_js_bindings(WebGL/WebGLContextEvent)
|
|||
libweb_js_bindings(WebGL/WebGLFramebuffer)
|
||||
libweb_js_bindings(WebGL/WebGLObject)
|
||||
libweb_js_bindings(WebGL/WebGLProgram)
|
||||
libweb_js_bindings(WebGL/WebGLRenderbuffer)
|
||||
libweb_js_bindings(WebGL/WebGLRenderingContext)
|
||||
libweb_js_bindings(WebIDL/DOMException)
|
||||
libweb_js_bindings(WebSockets/WebSocket)
|
||||
|
|
|
@ -376,6 +376,7 @@ standard_idl_files = [
|
|||
"//Userland/Libraries/LibWeb/WebGL/WebGLFramebuffer.idl",
|
||||
"//Userland/Libraries/LibWeb/WebGL/WebGLObject.idl",
|
||||
"//Userland/Libraries/LibWeb/WebGL/WebGLProgram.idl",
|
||||
"//Userland/Libraries/LibWeb/WebGL/WebGLRenderbuffer.idl",
|
||||
"//Userland/Libraries/LibWeb/WebGL/WebGLRenderingContext.idl",
|
||||
"//Userland/Libraries/LibWeb/WebIDL/DOMException.idl",
|
||||
"//Userland/Libraries/LibWeb/WebSockets/WebSocket.idl",
|
||||
|
|
|
@ -395,6 +395,7 @@ WebGLContextEvent
|
|||
WebGLFramebuffer
|
||||
WebGLObject
|
||||
WebGLProgram
|
||||
WebGLRenderbuffer
|
||||
WebGLRenderingContext
|
||||
WebKitCSSMatrix
|
||||
WebSocket
|
||||
|
|
Loading…
Reference in a new issue