2024-12-05 19:23:19 -07:00
|
|
|
/*
|
|
|
|
* Copyright (c) 2024, Andrew Kaster <andrew@ladybird.org>
|
|
|
|
*
|
|
|
|
* SPDX-License-Identifier: BSD-2-Clause
|
|
|
|
*/
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include <LibWeb/WebGL/Types.h>
|
|
|
|
#include <LibWeb/WebGL/WebGLObject.h>
|
|
|
|
|
|
|
|
namespace Web::WebGL {
|
|
|
|
|
|
|
|
class WebGLTransformFeedback : public WebGLObject {
|
|
|
|
WEB_PLATFORM_OBJECT(WebGLTransformFeedback, WebGLObject);
|
|
|
|
GC_DECLARE_ALLOCATOR(WebGLTransformFeedback);
|
|
|
|
|
|
|
|
public:
|
2024-12-17 06:15:53 +01:00
|
|
|
static GC::Ref<WebGLTransformFeedback> create(JS::Realm& realm, WebGLRenderingContextBase&, GLuint handle);
|
2024-12-05 19:23:19 -07:00
|
|
|
|
|
|
|
virtual ~WebGLTransformFeedback() override;
|
|
|
|
|
|
|
|
protected:
|
2024-12-17 06:15:53 +01:00
|
|
|
explicit WebGLTransformFeedback(JS::Realm&, WebGLRenderingContextBase&, GLuint handle);
|
2024-12-05 19:23:19 -07:00
|
|
|
|
|
|
|
virtual void initialize(JS::Realm&) override;
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|