~ WIP port emscripen (WebGL)

This commit is contained in:
REMqb
2022-08-14 21:46:16 +02:00
committed by Jérôme Leclercq
parent 304bf35c08
commit f172330aaf
27 changed files with 721 additions and 36 deletions

View File

@@ -287,7 +287,7 @@ int main()
uboUpdate = true;
});
while (window.IsOpen())
Nz::BasicMainloop(window, [&]
{
Nz::Window::ProcessEvents();
@@ -325,7 +325,7 @@ int main()
if (!frame)
{
std::this_thread::sleep_for(std::chrono::milliseconds(1));
continue;
return;
}
debugDrawer.Reset(frame);
@@ -414,7 +414,7 @@ int main()
// Et on réinitialise le compteur de FPS
fps = 0;
}
}
});
return EXIT_SUCCESS;
}

View File

@@ -1,3 +1,7 @@
target("RenderTest")
add_deps("NazaraRenderer")
add_files("main.cpp")
add_files("main.cpp")
if is_plat("wasm") then
add_ldflags("--preload-file assets/examples/", {force = true})
end