|
@@ -520,14 +520,6 @@ public:
|
|
continue;
|
|
continue;
|
|
}
|
|
}
|
|
|
|
|
|
- if (function.name == "getAttribLocation"sv) {
|
|
|
|
- function_impl_generator.append(R"~~~(
|
|
|
|
- auto name_str = null_terminated_string(name);
|
|
|
|
- return glGetAttribLocation(program->handle(), name_str.data());
|
|
|
|
-)~~~");
|
|
|
|
- continue;
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
if (function.name == "vertexAttribPointer"sv) {
|
|
if (function.name == "vertexAttribPointer"sv) {
|
|
function_impl_generator.append(R"~~~(
|
|
function_impl_generator.append(R"~~~(
|
|
glVertexAttribPointer(index, size, type, normalized, stride, reinterpret_cast<void*>(offset));
|
|
glVertexAttribPointer(index, size, type, normalized, stride, reinterpret_cast<void*>(offset));
|
|
@@ -629,14 +621,6 @@ public:
|
|
continue;
|
|
continue;
|
|
}
|
|
}
|
|
|
|
|
|
- if (function.name == "getUniformLocation"sv) {
|
|
|
|
- function_impl_generator.append(R"~~~(
|
|
|
|
- auto name_str = null_terminated_string(name);
|
|
|
|
- return WebGLUniformLocation::create(m_realm, glGetUniformLocation(program->handle(), name_str.data()));
|
|
|
|
-)~~~");
|
|
|
|
- continue;
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
if (function.name == "drawElements"sv) {
|
|
if (function.name == "drawElements"sv) {
|
|
function_impl_generator.append(R"~~~(
|
|
function_impl_generator.append(R"~~~(
|
|
glDrawElements(mode, count, type, reinterpret_cast<void*>(offset));
|
|
glDrawElements(mode, count, type, reinterpret_cast<void*>(offset));
|