2020-01-04 23:23:25 +08:00
|
|
|
// Import polyfills before anything else.
|
|
|
|
import "core-js/stable";
|
|
|
|
|
2019-08-23 23:00:39 +08:00
|
|
|
import "./core/gui/index.css";
|
2019-08-30 00:24:03 +08:00
|
|
|
import "@fortawesome/fontawesome-free/js/fontawesome";
|
|
|
|
import "@fortawesome/fontawesome-free/js/solid";
|
|
|
|
import "@fortawesome/fontawesome-free/js/regular";
|
2019-09-14 03:20:26 +08:00
|
|
|
import "@fortawesome/fontawesome-free/js/brands";
|
2019-12-25 07:17:02 +08:00
|
|
|
import { initialize_application } from "./application";
|
2019-12-22 05:49:41 +08:00
|
|
|
import { FetchClient } from "./core/HttpClient";
|
2019-12-22 07:43:27 +08:00
|
|
|
import { WebGLRenderer } from "three";
|
|
|
|
import { DisposableThreeRenderer } from "./core/rendering/Renderer";
|
2019-08-20 04:56:40 +08:00
|
|
|
|
2019-12-22 07:43:27 +08:00
|
|
|
function create_three_renderer(): DisposableThreeRenderer {
|
|
|
|
const renderer = new WebGLRenderer({ antialias: true, alpha: true });
|
|
|
|
renderer.setPixelRatio(window.devicePixelRatio);
|
|
|
|
return renderer;
|
|
|
|
}
|
|
|
|
|
2019-12-25 07:17:02 +08:00
|
|
|
initialize_application(new FetchClient(), create_three_renderer);
|