LibWeb/WebGL: Implement createRenderbuffer

This commit is contained in:
Luke Wilde 2024-12-05 11:03:35 +00:00 committed by Alexander Kalenik
commit d185c2c28c
Notes: github-actions[bot] 2024-12-05 20:43:32 +00:00
4 changed files with 21 additions and 4 deletions

View file

@ -424,6 +424,15 @@ public:
continue;
}
if (function.name == "createRenderbuffer"sv) {
function_impl_generator.append(R"~~~(
GLuint handle = 0;
glGenRenderbuffers(1, &handle);
return WebGLRenderbuffer::create(m_realm, handle);
)~~~");
continue;
}
if (function.name == "shaderSource"sv) {
function_impl_generator.append(R"~~~(
Vector<GLchar*> strings;