/* * Copyright (c) 2025, Luke Wilde * * SPDX-License-Identifier: BSD-2-Clause */ #pragma once #include #include #include namespace Web::WebGL::Extensions { class WebGLDrawBuffers : public Bindings::PlatformObject { WEB_PLATFORM_OBJECT(WebGLDrawBuffers, Bindings::PlatformObject); GC_DECLARE_ALLOCATOR(WebGLDrawBuffers); public: static JS::ThrowCompletionOr> create(JS::Realm&, GC::Ref); void draw_buffers_webgl(Vector buffers); protected: void initialize(JS::Realm&) override; void visit_edges(Visitor&) override; private: WebGLDrawBuffers(JS::Realm&, GC::Ref); GC::Ref m_context; }; }