LibWeb/WebGL: Implement OES_vertex_array_object extension

This commit is contained in:
Luke Wilde 2025-01-09 19:17:19 +00:00 committed by Andreas Kling
commit 442f0b9a13
Notes: github-actions[bot] 2025-01-21 20:37:57 +00:00
10 changed files with 244 additions and 0 deletions

View file

@ -14,6 +14,7 @@
#include <LibWeb/Painting/Paintable.h>
#include <LibWeb/WebGL/ANGLEInstancedArrays.h>
#include <LibWeb/WebGL/EventNames.h>
#include <LibWeb/WebGL/OESVertexArrayObject.h>
#include <LibWeb/WebGL/OpenGLContext.h>
#include <LibWeb/WebGL/WebGLContextEvent.h>
#include <LibWeb/WebGL/WebGLRenderingContext.h>
@ -176,6 +177,9 @@ JS::Object* WebGLRenderingContext::get_extension(String const& name)
if (name == "ANGLE_instanced_arrays"sv) {
return MUST(ANGLEInstancedArrays::create(realm()));
}
if (name == "OES_vertex_array_object"sv) {
return MUST(OESVertexArrayObject::create(realm(), *this));
}
return nullptr;
}