Files
ladybird/Libraries/LibWeb/WebGL/Extensions/ANGLEInstancedArrays.h
Undefine 72d5fe7faf LibWeb: Ensure all extension factory functions have the same signature
This allows the next commit to have a factory function field in the
extension info struct.
2026-03-11 20:19:45 +01:00

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::Extensions {
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;
};
}