mirror of
https://github.com/photonstorm/phaser
synced 2025-02-16 22:18:29 +00:00
The PipelineManager.resize
method along with WebGLPipeline.resize
and anything else that extends them no longer receives or uses the resolution
parameter.
This commit is contained in:
parent
37a9261ac4
commit
67e49b515c
3 changed files with 8 additions and 22 deletions
|
@ -175,7 +175,7 @@ var PipelineManager = new Class({
|
|||
pipeline.boot();
|
||||
}
|
||||
|
||||
pipeline.resize(renderer.width, renderer.height, renderer.config.resolution);
|
||||
pipeline.resize(renderer.width, renderer.height);
|
||||
|
||||
return pipeline;
|
||||
},
|
||||
|
@ -190,15 +190,14 @@ var PipelineManager = new Class({
|
|||
*
|
||||
* @param {number} [width] - The new width of the renderer.
|
||||
* @param {number} [height] - The new height of the renderer.
|
||||
* @param {number} [resolution] - The new resolution of the renderer.
|
||||
*/
|
||||
resize: function (width, height, resolution)
|
||||
resize: function (width, height)
|
||||
{
|
||||
var pipelines = this.pipelines;
|
||||
|
||||
pipelines.each(function (pipelineName, pipelineInstance)
|
||||
{
|
||||
pipelineInstance.resize(width, height, resolution);
|
||||
pipelineInstance.resize(width, height);
|
||||
});
|
||||
},
|
||||
|
||||
|
|
|
@ -87,16 +87,6 @@ var WebGLPipeline = new Class({
|
|||
*/
|
||||
this.view = game.canvas;
|
||||
|
||||
/**
|
||||
* The current game resolution.
|
||||
* This is hard-coded to 1.
|
||||
*
|
||||
* @name Phaser.Renderer.WebGL.WebGLPipeline#resolution
|
||||
* @type {number}
|
||||
* @since 3.0.0
|
||||
*/
|
||||
this.resolution = 1;
|
||||
|
||||
/**
|
||||
* Width of the current viewport.
|
||||
*
|
||||
|
@ -371,15 +361,13 @@ var WebGLPipeline = new Class({
|
|||
*
|
||||
* @param {number} width - The new width of this WebGL Pipeline.
|
||||
* @param {number} height - The new height of this WebGL Pipeline.
|
||||
* @param {number} resolution - The resolution this WebGL Pipeline should be resized to.
|
||||
*
|
||||
* @return {this} This WebGLPipeline instance.
|
||||
*/
|
||||
resize: function (width, height, resolution)
|
||||
resize: function (width, height)
|
||||
{
|
||||
this.width = width * resolution;
|
||||
this.height = height * resolution;
|
||||
this.resolution = resolution;
|
||||
this.width = width;
|
||||
this.height = height;
|
||||
|
||||
return this;
|
||||
},
|
||||
|
|
|
@ -338,13 +338,12 @@ var MultiPipeline = new Class({
|
|||
*
|
||||
* @param {number} width - The new width.
|
||||
* @param {number} height - The new height.
|
||||
* @param {number} resolution - The resolution.
|
||||
*
|
||||
* @return {this} This WebGLPipeline instance.
|
||||
*/
|
||||
resize: function (width, height, resolution)
|
||||
resize: function (width, height)
|
||||
{
|
||||
WebGLPipeline.prototype.resize.call(this, width, height, resolution);
|
||||
WebGLPipeline.prototype.resize.call(this, width, height);
|
||||
|
||||
ProjectOrtho(this, 0, this.width, this.height, 0, -1000, 1000);
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue