mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-06-21 01:31:55 +00:00
LibWeb/WebGL: Add stub class for WebGLVertexArrayObject
This is a WebGL 2.0 class
This commit is contained in:
parent
39018d233f
commit
7abc79ece7
Notes:
github-actions[bot]
2024-12-06 14:36:59 +00:00
Author: https://github.com/ADKaster
Commit: 7abc79ece7
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/2809
Reviewed-by: https://github.com/kalenikaliaksandr ✅
6 changed files with 72 additions and 0 deletions
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;
|
||||
};
|
||||
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue