ladybird/Libraries/LibWeb/WebGL/WebGLFramebuffer.h

27 lines
540 B
C
Raw Normal View History

2024-11-13 09:46:25 +01:00
/*
* 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 WebGLFramebuffer final : public WebGLObject {
WEB_PLATFORM_OBJECT(WebGLFramebuffer, WebGLObject);
GC_DECLARE_ALLOCATOR(WebGLFramebuffer);
2024-11-13 09:46:25 +01:00
public:
static GC::Ptr<WebGLFramebuffer> create(JS::Realm& realm, GLuint handle);
2024-11-13 09:46:25 +01:00
virtual ~WebGLFramebuffer();
protected:
explicit WebGLFramebuffer(JS::Realm&, GLuint handle);
2024-11-13 09:46:25 +01:00
};
}