mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-06 16:19:23 +00:00
LibWeb: Save OpenGL handle in WebGLObject
This commit is contained in:
parent
46cbbda944
commit
cfb394cad3
Notes:
github-actions[bot]
2024-12-03 22:37:03 +00:00
Author: https://github.com/kalenikaliaksandr
Commit: cfb394cad3
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/2688
Reviewed-by: https://github.com/ADKaster ✅
15 changed files with 83 additions and 20 deletions
|
@ -1,5 +1,6 @@
|
|||
/*
|
||||
* Copyright (c) 2024, Jelle Raaijmakers <jelle@ladybird.org>
|
||||
* Copyright (c) 2024, Aliaksandr Kalenik <kalenik.aliaksandr@gmail.com>
|
||||
*
|
||||
* SPDX-License-Identifier: BSD-2-Clause
|
||||
*/
|
||||
|
@ -15,10 +16,12 @@ class WebGLUniformLocation final : public WebGLObject {
|
|||
GC_DECLARE_ALLOCATOR(WebGLUniformLocation);
|
||||
|
||||
public:
|
||||
static GC::Ptr<WebGLUniformLocation> create(JS::Realm& realm, GLuint handle);
|
||||
|
||||
virtual ~WebGLUniformLocation();
|
||||
|
||||
protected:
|
||||
explicit WebGLUniformLocation(JS::Realm&);
|
||||
explicit WebGLUniformLocation(JS::Realm&, GLuint handle);
|
||||
};
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue