mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-04-26 01:35:08 +02:00
LibWeb/WebGL: Add stub class for WebGLVertexArrayObject
This is a WebGL 2.0 class
This commit is contained in:
committed by
Alexander Kalenik
parent
39018d233f
commit
7abc79ece7
Notes:
github-actions[bot]
2024-12-06 14:36:59 +00:00
Author: https://github.com/ADKaster Commit: https://github.com/LadybirdBrowser/ladybird/commit/7abc79ece70 Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/2809 Reviewed-by: https://github.com/kalenikaliaksandr ✅
29
Libraries/LibWeb/WebGL/WebGLVertexArrayObject.h
Normal file
29
Libraries/LibWeb/WebGL/WebGLVertexArrayObject.h
Normal file
@@ -0,0 +1,29 @@
|
||||
/*
|
||||
* Copyright (c) 2024, Andrew Kaster <andrew@ladybird.org>
|
||||
*
|
||||
* SPDX-License-Identifier: BSD-2-Clause
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
|
||||
#include <LibWeb/WebGL/Types.h>
|
||||
#include <LibWeb/WebGL/WebGLObject.h>
|
||||
|
||||
namespace Web::WebGL {
|
||||
|
||||
class WebGLVertexArrayObject : public WebGLObject {
|
||||
WEB_PLATFORM_OBJECT(WebGLVertexArrayObject, WebGLObject);
|
||||
GC_DECLARE_ALLOCATOR(WebGLVertexArrayObject);
|
||||
|
||||
public:
|
||||
static GC::Ref<WebGLVertexArrayObject> create(JS::Realm& realm, GLuint handle);
|
||||
|
||||
virtual ~WebGLVertexArrayObject() override;
|
||||
|
||||
protected:
|
||||
explicit WebGLVertexArrayObject(JS::Realm&, GLuint handle);
|
||||
|
||||
virtual void initialize(JS::Realm&) override;
|
||||
};
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user