mirror of
https://github.com/photonstorm/phaser
synced 2024-11-22 04:33:31 +00:00
WebGLRenderer.finalType
is a new boolean property that signifies if the current Game Object being rendered is the final one in the list.
This commit is contained in:
parent
482f016898
commit
791704febe
1 changed files with 11 additions and 0 deletions
|
@ -579,6 +579,15 @@ var WebGLRenderer = new Class({
|
|||
*/
|
||||
this.nextTypeMatch = false;
|
||||
|
||||
/**
|
||||
* Is the Game Object being currently rendered the final one in the list?
|
||||
*
|
||||
* @name Phaser.Renderer.WebGL.WebGLRenderer#finalType
|
||||
* @type {boolean}
|
||||
* @since 3.50.0
|
||||
*/
|
||||
this.finalType = false;
|
||||
|
||||
/**
|
||||
* The mipmap magFilter to be used when creating textures.
|
||||
*
|
||||
|
@ -2450,6 +2459,8 @@ var WebGLRenderer = new Class({
|
|||
|
||||
for (var i = 0; i < childCount; i++)
|
||||
{
|
||||
this.finalType = (i === childCount - 1);
|
||||
|
||||
var child = list[i];
|
||||
|
||||
if (!child.willRender(camera))
|
||||
|
|
Loading…
Reference in a new issue