2024-11-13 05:46:25 -03:00
|
|
|
/*
|
|
|
|
|
* Copyright (c) 2024, Jelle Raaijmakers <jelle@ladybird.org>
|
2024-12-05 12:13:02 -03:00
|
|
|
* Copyright (c) 2024, Luke Wilde <luke@ladybird.org>
|
2024-11-13 05:46:25 -03:00
|
|
|
*
|
|
|
|
|
* SPDX-License-Identifier: BSD-2-Clause
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
|
|
|
|
|
#include <LibWeb/WebGL/WebGLObject.h>
|
|
|
|
|
|
|
|
|
|
namespace Web::WebGL {
|
|
|
|
|
|
|
|
|
|
class WebGLFramebuffer final : public WebGLObject {
|
|
|
|
|
WEB_PLATFORM_OBJECT(WebGLFramebuffer, WebGLObject);
|
2024-11-14 12:01:23 -03:00
|
|
|
GC_DECLARE_ALLOCATOR(WebGLFramebuffer);
|
2024-11-13 05:46:25 -03:00
|
|
|
|
|
|
|
|
public:
|
2024-12-17 02:15:53 -03:00
|
|
|
static GC::Ref<WebGLFramebuffer> create(JS::Realm& realm, WebGLRenderingContextBase&, GLuint handle);
|
2024-12-05 07:55:34 -03:00
|
|
|
|
2024-11-13 05:46:25 -03:00
|
|
|
virtual ~WebGLFramebuffer();
|
|
|
|
|
|
|
|
|
|
protected:
|
2024-12-17 02:15:53 -03:00
|
|
|
explicit WebGLFramebuffer(JS::Realm&, WebGLRenderingContextBase&, GLuint handle);
|
2024-12-05 12:13:02 -03:00
|
|
|
|
|
|
|
|
virtual void initialize(JS::Realm&) override;
|
2024-11-13 05:46:25 -03:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
}
|