WebGLUniformLocation.cpp 737 B

12345678910111213141516171819202122232425262728
  1. /*
  2. * Copyright (c) 2024, Jelle Raaijmakers <jelle@ladybird.org>
  3. * Copyright (c) 2024, Aliaksandr Kalenik <kalenik.aliaksandr@gmail.com>
  4. *
  5. * SPDX-License-Identifier: BSD-2-Clause
  6. */
  7. #include <LibJS/Runtime/Realm.h>
  8. #include <LibWeb/Bindings/WebGLUniformLocationPrototype.h>
  9. #include <LibWeb/WebGL/WebGLUniformLocation.h>
  10. namespace Web::WebGL {
  11. GC_DEFINE_ALLOCATOR(WebGLUniformLocation);
  12. GC::Ptr<WebGLUniformLocation> WebGLUniformLocation::create(JS::Realm& realm, GLuint handle)
  13. {
  14. return realm.heap().allocate<WebGLUniformLocation>(realm, handle);
  15. }
  16. WebGLUniformLocation::WebGLUniformLocation(JS::Realm& realm, GLuint handle)
  17. : WebGLObject(realm, handle)
  18. {
  19. }
  20. WebGLUniformLocation::~WebGLUniformLocation() = default;
  21. }