ladybird/Libraries/LibWeb/WebGL/WebGLBuffer.h

29 lines
615 B
C
Raw Normal View History

2024-11-13 09:35:57 +01:00
/*
* Copyright (c) 2024, Jelle Raaijmakers <jelle@ladybird.org>
* Copyright (c) 2024, Aliaksandr Kalenik <kalenik.aliaksandr@gmail.com>
2024-11-13 09:35:57 +01:00
*
* SPDX-License-Identifier: BSD-2-Clause
*/
#pragma once
#include <LibWeb/WebGL/Types.h>
2024-11-13 09:35:57 +01:00
#include <LibWeb/WebGL/WebGLObject.h>
namespace Web::WebGL {
class WebGLBuffer final : public WebGLObject {
WEB_PLATFORM_OBJECT(WebGLBuffer, WebGLObject);
GC_DECLARE_ALLOCATOR(WebGLBuffer);
2024-11-13 09:35:57 +01:00
public:
static GC::Ptr<WebGLBuffer> create(JS::Realm& realm, GLuint handle);
2024-11-13 09:35:57 +01:00
virtual ~WebGLBuffer();
protected:
explicit WebGLBuffer(JS::Realm&, GLuint handle);
2024-11-13 09:35:57 +01:00
};
}