Prep for using imgui with WebGL. (#225)

This commit is contained in:
Philip Rideout
2018-09-07 13:19:35 -07:00
committed by GitHub
parent e22b82e4e0
commit d4cb898dfe
10 changed files with 87 additions and 45 deletions

View File

@@ -29,7 +29,6 @@
#include <cmath>
using namespace filament;
using namespace std;
using utils::Entity;
using utils::EntityManager;
@@ -111,13 +110,10 @@ void animate(Engine* engine, View* view, double now) {
math::mat4f::rotate(now, math::float3{0, 0, 1}));
};
void gui(filament::Engine* engine, filament::View*) {
};
// This is called only after the JavaScript layer has created a WebGL 2.0 context and all assets
// have been downloaded.
extern "C" void launch() {
filaweb::Application::get()->run(setup, gui, animate);
filaweb::Application::get()->run(setup, animate);
}
// The main() entry point is implicitly called after JIT compilation, but potentially before the