mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-04-26 01:35:08 +02:00
LibWeb: Implement the OES_element_index_uint WebGL extension
This commit is contained in:
Notes:
github-actions[bot]
2026-02-06 10:39:42 +00:00
Author: https://github.com/cqundefine Commit: https://github.com/LadybirdBrowser/ladybird/commit/3c4a31bca77 Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/6978 Reviewed-by: https://github.com/ADKaster ✅ Reviewed-by: https://github.com/gmta Reviewed-by: https://github.com/konradekk
31
Libraries/LibWeb/WebGL/Extensions/OESElementIndexUint.h
Normal file
31
Libraries/LibWeb/WebGL/Extensions/OESElementIndexUint.h
Normal file
@@ -0,0 +1,31 @@
|
||||
/*
|
||||
* 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 OESElementIndexUint : public Bindings::PlatformObject {
|
||||
WEB_PLATFORM_OBJECT(OESElementIndexUint, Bindings::PlatformObject);
|
||||
GC_DECLARE_ALLOCATOR(OESElementIndexUint);
|
||||
|
||||
public:
|
||||
static JS::ThrowCompletionOr<GC::Ptr<OESElementIndexUint>> create(JS::Realm&, GC::Ref<WebGLRenderingContext>);
|
||||
|
||||
protected:
|
||||
void initialize(JS::Realm&) override;
|
||||
void visit_edges(Visitor&) override;
|
||||
|
||||
private:
|
||||
OESElementIndexUint(JS::Realm&, GC::Ref<WebGLRenderingContext>);
|
||||
|
||||
GC::Ref<WebGLRenderingContext> m_context;
|
||||
};
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user