mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-01-02 22:55:23 +00: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
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