mirror of
https://github.com/RGBCube/serenity
synced 2025-07-28 07:07:44 +00:00
LibWeb: Add the ability to retrieve a WebGL context from getContext
This commit is contained in:
parent
b0c2aee2e4
commit
58f882200c
19 changed files with 903 additions and 21 deletions
|
@ -500,7 +500,7 @@ if (BUILD_LAGOM)
|
|||
|
||||
lagom_lib(Web web
|
||||
SOURCES ${LIBWEB_SOURCES} ${LIBWEB_SUBDIR_SOURCES} ${LIBWEB_SUBSUBDIR_SOURCES} ${LIBWEB_GENERATED_SOURCES}
|
||||
LIBS LagomMarkdown LagomGemini LagomGfx LagomJS LagomTextCodec LagomWasm LagomXML
|
||||
LIBS LagomMarkdown LagomGemini LagomGfx LagomGL LagomJS LagomTextCodec LagomWasm LagomXML
|
||||
)
|
||||
generate_js_wrappers(LagomWeb)
|
||||
|
||||
|
|
|
@ -48,6 +48,10 @@ static bool is_wrappable_type(Type const& type)
|
|||
return true;
|
||||
if (type.name == "AbortSignal")
|
||||
return true;
|
||||
if (type.name == "CanvasRenderingContext2D")
|
||||
return true;
|
||||
if (type.name == "WebGLRenderingContext")
|
||||
return true;
|
||||
return false;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue