ladybird/Libraries/LibWeb/WebGL/WebGLUniformLocation.h

35 lines
828 B
C
Raw Normal View History

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