ladybird/Libraries/LibWeb/WebGL/WebGLUniformLocation.cpp

29 lines
737 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
*/
#include <LibJS/Runtime/Realm.h>
2024-11-13 10:11:08 +01:00
#include <LibWeb/Bindings/WebGLUniformLocationPrototype.h>
#include <LibWeb/WebGL/WebGLUniformLocation.h>
namespace Web::WebGL {
GC_DEFINE_ALLOCATOR(WebGLUniformLocation);
2024-11-13 10:11:08 +01:00
GC::Ptr<WebGLUniformLocation> WebGLUniformLocation::create(JS::Realm& realm, GLuint handle)
{
return realm.heap().allocate<WebGLUniformLocation>(realm, handle);
}
WebGLUniformLocation::WebGLUniformLocation(JS::Realm& realm, GLuint handle)
: WebGLObject(realm, handle)
2024-11-13 10:11:08 +01:00
{
}
WebGLUniformLocation::~WebGLUniformLocation() = default;
}