resize event to render system

beta.r3js.org
-=yb4f310 2017-12-12 11:45:35 +01:00
parent c4d70e8795
commit cc9bdae317
3 changed files with 19 additions and 3 deletions

File diff suppressed because one or more lines are too long

View File

@ -1,5 +1,5 @@
// COMPILE TIME DEFINITIONS (Generated via gulp)
var __DATE__ = "Tue Dec 12 2017 11:35:24 GMT+0100 (CET)";
var __DATE__ = "Tue Dec 12 2017 11:44:47 GMT+0100 (CET)";
// END COMPILE TIME DEFINITIONS
/**
@ -32084,6 +32084,14 @@ GameLib.System.Render.prototype.start = function() {
false
);
GameLib.Event.Emit(
GameLib.Event.WINDOW_RESIZE,
{
width : window.innerWidth,
height : window.innerHeight
}
);
this.run();
};

View File

@ -64,6 +64,14 @@ GameLib.System.Render.prototype.start = function() {
false
);
GameLib.Event.Emit(
GameLib.Event.WINDOW_RESIZE,
{
width : window.innerWidth,
height : window.innerHeight
}
);
this.run();
};