2024-12-05 19:23:19 -07:00
|
|
|
/*
|
|
|
|
* Copyright (c) 2024, Andrew Kaster <andrew@ladybird.org>
|
|
|
|
*
|
|
|
|
* SPDX-License-Identifier: BSD-2-Clause
|
|
|
|
*/
|
|
|
|
|
|
|
|
#include <LibJS/Runtime/Realm.h>
|
|
|
|
#include <LibWeb/Bindings/Intrinsics.h>
|
|
|
|
#include <LibWeb/Bindings/WebGLTransformFeedbackPrototype.h>
|
|
|
|
#include <LibWeb/WebGL/WebGLTransformFeedback.h>
|
|
|
|
|
|
|
|
namespace Web::WebGL {
|
|
|
|
|
|
|
|
GC_DEFINE_ALLOCATOR(WebGLTransformFeedback);
|
|
|
|
|
2024-12-17 06:15:53 +01:00
|
|
|
GC::Ref<WebGLTransformFeedback> WebGLTransformFeedback::create(JS::Realm& realm, WebGLRenderingContextBase& context, GLuint handle)
|
2024-12-05 19:23:19 -07:00
|
|
|
{
|
2024-12-17 06:15:53 +01:00
|
|
|
return realm.create<WebGLTransformFeedback>(realm, context, handle);
|
2024-12-05 19:23:19 -07:00
|
|
|
}
|
|
|
|
|
2024-12-17 06:15:53 +01:00
|
|
|
WebGLTransformFeedback::WebGLTransformFeedback(JS::Realm& realm, WebGLRenderingContextBase& context, GLuint handle)
|
|
|
|
: WebGLObject(realm, context, handle)
|
2024-12-05 19:23:19 -07:00
|
|
|
{
|
|
|
|
}
|
|
|
|
|
|
|
|
WebGLTransformFeedback::~WebGLTransformFeedback() = default;
|
|
|
|
|
|
|
|
void WebGLTransformFeedback::initialize(JS::Realm& realm)
|
|
|
|
{
|
|
|
|
WEB_SET_PROTOTYPE_FOR_INTERFACE(WebGLTransformFeedback);
|
2025-04-20 16:22:57 +02:00
|
|
|
Base::initialize(realm);
|
2024-12-05 19:23:19 -07:00
|
|
|
}
|
|
|
|
|
|
|
|
}
|