WebGLFramebuffer.h 540 B

1234567891011121314151617181920212223242526
  1. /*
  2. * Copyright (c) 2024, Jelle Raaijmakers <jelle@ladybird.org>
  3. *
  4. * SPDX-License-Identifier: BSD-2-Clause
  5. */
  6. #pragma once
  7. #include <LibWeb/WebGL/WebGLObject.h>
  8. namespace Web::WebGL {
  9. class WebGLFramebuffer final : public WebGLObject {
  10. WEB_PLATFORM_OBJECT(WebGLFramebuffer, WebGLObject);
  11. GC_DECLARE_ALLOCATOR(WebGLFramebuffer);
  12. public:
  13. static GC::Ptr<WebGLFramebuffer> create(JS::Realm& realm, GLuint handle);
  14. virtual ~WebGLFramebuffer();
  15. protected:
  16. explicit WebGLFramebuffer(JS::Realm&, GLuint handle);
  17. };
  18. }