mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-31 05:09:12 +00:00
LibWeb/WebGL: Implement OES_vertex_array_object extension
This commit is contained in:
parent
58942e1137
commit
442f0b9a13
Notes:
github-actions[bot]
2025-01-21 20:37:57 +00:00
Author: https://github.com/Lubrsi
Commit: 442f0b9a13
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/3239
Reviewed-by: https://github.com/awesomekling
Reviewed-by: https://github.com/kalenikaliaksandr
10 changed files with 244 additions and 0 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue