|
@@ -99,6 +99,7 @@ class Scene extends Component implements h3d.IDrawable {
|
|
function delayedInit() {
|
|
function delayedInit() {
|
|
canvas.id = "webgl";
|
|
canvas.id = "webgl";
|
|
window = @:privateAccess new hxd.Window(canvas);
|
|
window = @:privateAccess new hxd.Window(canvas);
|
|
|
|
+ window.propagateKeyEvents = true;
|
|
window.setCurrent();
|
|
window.setCurrent();
|
|
engine = new h3d.Engine();
|
|
engine = new h3d.Engine();
|
|
@:privateAccess engine.resCache.set(Scene, this);
|
|
@:privateAccess engine.resCache.set(Scene, this);
|