mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-04-26 01:35:08 +02:00
No other third layer folder in LibWeb has its own namespace which makes this a special case for the IDLGenerator when determining namespaces. Instead of adding a special case, simply remove the namespace.
37 lines
1.1 KiB
C++
37 lines
1.1 KiB
C++
/*
|
|
* Copyright (c) 2024, Aliaksandr Kalenik <kalenik.aliaksandr@gmail.com>
|
|
*
|
|
* SPDX-License-Identifier: BSD-2-Clause
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
#include <LibWeb/Bindings/PlatformObject.h>
|
|
#include <LibWeb/Forward.h>
|
|
#include <LibWeb/WebGL/Types.h>
|
|
|
|
namespace Web::WebGL {
|
|
|
|
class ANGLEInstancedArrays : public Bindings::PlatformObject {
|
|
WEB_PLATFORM_OBJECT(ANGLEInstancedArrays, Bindings::PlatformObject);
|
|
GC_DECLARE_ALLOCATOR(ANGLEInstancedArrays);
|
|
|
|
public:
|
|
static JS::ThrowCompletionOr<GC::Ref<JS::Object>> create(JS::Realm&, GC::Ref<WebGLRenderingContextBase>);
|
|
|
|
void draw_arrays_instanced_angle(GLenum mode, GLint first, GLsizei count, GLsizei primcount);
|
|
void draw_elements_instanced_angle(GLenum mode, GLsizei count, GLenum type, GLintptr offset, GLsizei primcount);
|
|
void vertex_attrib_divisor_angle(GLuint index, GLuint divisor);
|
|
|
|
protected:
|
|
void initialize(JS::Realm&) override;
|
|
void visit_edges(Visitor&) override;
|
|
|
|
private:
|
|
ANGLEInstancedArrays(JS::Realm&, GC::Ref<WebGLRenderingContextBase>);
|
|
|
|
GC::Ref<WebGLRenderingContextBase> m_context;
|
|
};
|
|
|
|
}
|