resize bullshit
parent
af41443981
commit
fb539ea10a
|
@ -417,11 +417,14 @@ GameLib.Renderer.D3.prototype.clear = function() {
|
|||
* @param height
|
||||
*/
|
||||
GameLib.Renderer.D3.prototype.setSize = function(width, height) {
|
||||
|
||||
this.instance.setSize(
|
||||
this.width * data.width,
|
||||
this.height * data.height,
|
||||
this.width * width,
|
||||
this.height * height,
|
||||
false
|
||||
);
|
||||
|
||||
this.instance.setPixelRatio(window.devicePixelRatio);
|
||||
};
|
||||
|
||||
/**
|
||||
|
|
|
@ -58,7 +58,7 @@ GameLib.System.Render.prototype.start = function() {
|
|||
|
||||
this.renderConfigurations = GameLib.EntityManager.Instance.queryComponents(GameLib.Component.RENDER_CONFIGURATION);
|
||||
|
||||
this.renderers = GameLib.EntityManager.Instance.queryComponents(GameLib.Component.RENDERER);
|
||||
this.renderers = GameLib.EntityManager.Instance.queryComponentsByConstructor(GameLib.Renderer);
|
||||
|
||||
this.composers = GameLib.EntityManager.Instance.queryComponents(GameLib.Component.COMPOSER);
|
||||
|
||||
|
@ -235,7 +235,7 @@ GameLib.System.Render.prototype.windowResize = function(data) {
|
|||
}
|
||||
);
|
||||
|
||||
GameLib.EntityManager.Instance.queryComponents(GameLib.Component.RENDERER).map(
|
||||
GameLib.EntityManager.Instance.queryComponentsByConstructor(GameLib.Renderer).map(
|
||||
function(renderer) {
|
||||
renderer.setSize(data.width, data.height);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue