WebGLObject.cpp 691 B

1234567891011121314151617181920212223242526272829
  1. /*
  2. * Copyright (c) 2024, Jelle Raaijmakers <jelle@ladybird.org>
  3. * Copyright (c) 2024, Aliaksandr Kalenik <kalenik.aliaksandr@gmail.com>
  4. * Copyright (c) 2024, Luke Wilde <luke@ladybird.org>
  5. *
  6. * SPDX-License-Identifier: BSD-2-Clause
  7. */
  8. #include <LibWeb/Bindings/Intrinsics.h>
  9. #include <LibWeb/Bindings/WebGLObjectPrototype.h>
  10. #include <LibWeb/WebGL/WebGLObject.h>
  11. namespace Web::WebGL {
  12. WebGLObject::WebGLObject(JS::Realm& realm, GLuint handle)
  13. : Bindings::PlatformObject(realm)
  14. , m_handle(handle)
  15. {
  16. }
  17. WebGLObject::~WebGLObject() = default;
  18. void WebGLObject::initialize(JS::Realm& realm)
  19. {
  20. Base::initialize(realm);
  21. WEB_SET_PROTOTYPE_FOR_INTERFACE(WebGLObject);
  22. }
  23. }