ladybird/Libraries/LibWeb/WebGL/WebGLTexture.h

32 lines
782 B
C
Raw Normal View History

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