ladybird/Libraries/LibWeb/WebGL/Extensions/OESStandardDerivatives.h

31 lines
777 B
C++

/*
* Copyright (c) 2025, Undefine <undefine@undefine.pl>
*
* SPDX-License-Identifier: BSD-2-Clause
*/
#pragma once
#include <LibWeb/Bindings/PlatformObject.h>
#include <LibWeb/Forward.h>
namespace Web::WebGL::Extensions {
class OESStandardDerivatives : public Bindings::PlatformObject {
WEB_PLATFORM_OBJECT(OESStandardDerivatives, Bindings::PlatformObject);
GC_DECLARE_ALLOCATOR(OESStandardDerivatives);
public:
static JS::ThrowCompletionOr<GC::Ptr<OESStandardDerivatives>> create(JS::Realm&, GC::Ref<WebGLRenderingContext>);
protected:
void initialize(JS::Realm&) override;
void visit_edges(Visitor&) override;
private:
OESStandardDerivatives(JS::Realm&, GC::Ref<WebGLRenderingContext>);
GC::Ref<WebGLRenderingContext> m_context;
};
}