~ WIP port emscripen (WebGL)
This commit is contained in:
@@ -214,7 +214,7 @@ int main()
|
||||
if (!frame)
|
||||
{
|
||||
std::this_thread::sleep_for(std::chrono::milliseconds(1));
|
||||
continue;
|
||||
return;
|
||||
}
|
||||
|
||||
framePipeline.GetDebugDrawer().DrawLine(Nz::Vector3f::Zero(), Nz::Vector3f::Forward(), Nz::Color::Blue());
|
||||
@@ -234,7 +234,7 @@ int main()
|
||||
window.SetTitle(windowTitle + " - " + Nz::NumberToString(fps) + " FPS");
|
||||
fps = 0;
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
return EXIT_SUCCESS;
|
||||
}
|
||||
|
||||
@@ -1,3 +1,7 @@
|
||||
target("GraphicsTest")
|
||||
add_deps("NazaraGraphics")
|
||||
add_files("main.cpp")
|
||||
add_files("main.cpp")
|
||||
|
||||
if is_plat("wasm") then
|
||||
add_ldflags("--preload-file assets/", {force = true})
|
||||
end
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user