mirror of
https://github.com/photonstorm/phaser
synced 2024-11-22 20:53:39 +00:00
Call addToRenderList
This commit is contained in:
parent
fd5324e1e2
commit
1c8662dc1f
22 changed files with 44 additions and 0 deletions
|
@ -32,6 +32,8 @@ var DynamicBitmapTextCanvasRenderer = function (renderer, src, camera, parentMat
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
camera.addToRenderList(src);
|
||||||
|
|
||||||
var textureFrame = src.frame;
|
var textureFrame = src.frame;
|
||||||
|
|
||||||
var displayCallback = src.displayCallback;
|
var displayCallback = src.displayCallback;
|
||||||
|
|
|
@ -32,6 +32,8 @@ var BitmapTextCanvasRenderer = function (renderer, src, camera, parentMatrix)
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
camera.addToRenderList(src);
|
||||||
|
|
||||||
var textureFrame = src.frame;
|
var textureFrame = src.frame;
|
||||||
|
|
||||||
var chars = src.fontData.chars;
|
var chars = src.fontData.chars;
|
||||||
|
|
|
@ -37,6 +37,8 @@ var BlitterCanvasRenderer = function (renderer, src, camera, parentMatrix)
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
camera.addToRenderList(src);
|
||||||
|
|
||||||
// Blend Mode + Scale Mode
|
// Blend Mode + Scale Mode
|
||||||
ctx.globalCompositeOperation = renderer.blendModes[src.blendMode];
|
ctx.globalCompositeOperation = renderer.blendModes[src.blendMode];
|
||||||
|
|
||||||
|
|
|
@ -35,6 +35,8 @@ var GraphicsCanvasRenderer = function (renderer, src, camera, parentMatrix, rend
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
camera.addToRenderList(src);
|
||||||
|
|
||||||
var lineAlpha = 1;
|
var lineAlpha = 1;
|
||||||
var fillAlpha = 1;
|
var fillAlpha = 1;
|
||||||
var lineColor = 0;
|
var lineColor = 0;
|
||||||
|
|
|
@ -20,6 +20,8 @@
|
||||||
*/
|
*/
|
||||||
var ImageCanvasRenderer = function (renderer, src, camera, parentMatrix)
|
var ImageCanvasRenderer = function (renderer, src, camera, parentMatrix)
|
||||||
{
|
{
|
||||||
|
camera.addToRenderList(src);
|
||||||
|
|
||||||
renderer.batchSprite(src, src.frame, camera, parentMatrix);
|
renderer.batchSprite(src, src.frame, camera, parentMatrix);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -67,6 +67,8 @@ var ParticleManagerCanvasRenderer = function (renderer, emitterManager, camera,
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
camera.addToRenderList(emitter);
|
||||||
|
|
||||||
var followX = (emitter.follow) ? emitter.follow.x + emitter.followOffset.x : 0;
|
var followX = (emitter.follow) ? emitter.follow.x + emitter.followOffset.x : 0;
|
||||||
var followY = (emitter.follow) ? emitter.follow.y + emitter.followOffset.y : 0;
|
var followY = (emitter.follow) ? emitter.follow.y + emitter.followOffset.y : 0;
|
||||||
|
|
||||||
|
|
|
@ -20,6 +20,8 @@
|
||||||
*/
|
*/
|
||||||
var RenderTextureCanvasRenderer = function (renderer, src, camera, parentMatrix)
|
var RenderTextureCanvasRenderer = function (renderer, src, camera, parentMatrix)
|
||||||
{
|
{
|
||||||
|
camera.addToRenderList(src);
|
||||||
|
|
||||||
renderer.batchSprite(src, src.frame, camera, parentMatrix);
|
renderer.batchSprite(src, src.frame, camera, parentMatrix);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -25,6 +25,8 @@ var SetTransform = require('../../../renderer/canvas/utils/SetTransform');
|
||||||
*/
|
*/
|
||||||
var ArcCanvasRenderer = function (renderer, src, camera, parentMatrix)
|
var ArcCanvasRenderer = function (renderer, src, camera, parentMatrix)
|
||||||
{
|
{
|
||||||
|
camera.addToRenderList(src);
|
||||||
|
|
||||||
var ctx = renderer.currentContext;
|
var ctx = renderer.currentContext;
|
||||||
|
|
||||||
if (SetTransform(renderer, ctx, src, camera, parentMatrix))
|
if (SetTransform(renderer, ctx, src, camera, parentMatrix))
|
||||||
|
|
|
@ -24,6 +24,8 @@ var SetTransform = require('../../../renderer/canvas/utils/SetTransform');
|
||||||
*/
|
*/
|
||||||
var CurveCanvasRenderer = function (renderer, src, camera, parentMatrix)
|
var CurveCanvasRenderer = function (renderer, src, camera, parentMatrix)
|
||||||
{
|
{
|
||||||
|
camera.addToRenderList(src);
|
||||||
|
|
||||||
var ctx = renderer.currentContext;
|
var ctx = renderer.currentContext;
|
||||||
|
|
||||||
if (SetTransform(renderer, ctx, src, camera, parentMatrix))
|
if (SetTransform(renderer, ctx, src, camera, parentMatrix))
|
||||||
|
|
|
@ -24,6 +24,8 @@ var SetTransform = require('../../../renderer/canvas/utils/SetTransform');
|
||||||
*/
|
*/
|
||||||
var EllipseCanvasRenderer = function (renderer, src, camera, parentMatrix)
|
var EllipseCanvasRenderer = function (renderer, src, camera, parentMatrix)
|
||||||
{
|
{
|
||||||
|
camera.addToRenderList(src);
|
||||||
|
|
||||||
var ctx = renderer.currentContext;
|
var ctx = renderer.currentContext;
|
||||||
|
|
||||||
if (SetTransform(renderer, ctx, src, camera, parentMatrix))
|
if (SetTransform(renderer, ctx, src, camera, parentMatrix))
|
||||||
|
|
|
@ -24,6 +24,8 @@ var SetTransform = require('../../../renderer/canvas/utils/SetTransform');
|
||||||
*/
|
*/
|
||||||
var GridCanvasRenderer = function (renderer, src, camera, parentMatrix)
|
var GridCanvasRenderer = function (renderer, src, camera, parentMatrix)
|
||||||
{
|
{
|
||||||
|
camera.addToRenderList(src);
|
||||||
|
|
||||||
var ctx = renderer.currentContext;
|
var ctx = renderer.currentContext;
|
||||||
|
|
||||||
if (SetTransform(renderer, ctx, src, camera, parentMatrix))
|
if (SetTransform(renderer, ctx, src, camera, parentMatrix))
|
||||||
|
|
|
@ -23,6 +23,8 @@ var SetTransform = require('../../../renderer/canvas/utils/SetTransform');
|
||||||
*/
|
*/
|
||||||
var IsoBoxCanvasRenderer = function (renderer, src, camera, parentMatrix)
|
var IsoBoxCanvasRenderer = function (renderer, src, camera, parentMatrix)
|
||||||
{
|
{
|
||||||
|
camera.addToRenderList(src);
|
||||||
|
|
||||||
var ctx = renderer.currentContext;
|
var ctx = renderer.currentContext;
|
||||||
|
|
||||||
if (SetTransform(renderer, ctx, src, camera, parentMatrix) && src.isFilled)
|
if (SetTransform(renderer, ctx, src, camera, parentMatrix) && src.isFilled)
|
||||||
|
|
|
@ -23,6 +23,8 @@ var SetTransform = require('../../../renderer/canvas/utils/SetTransform');
|
||||||
*/
|
*/
|
||||||
var IsoTriangleCanvasRenderer = function (renderer, src, camera, parentMatrix)
|
var IsoTriangleCanvasRenderer = function (renderer, src, camera, parentMatrix)
|
||||||
{
|
{
|
||||||
|
camera.addToRenderList(src);
|
||||||
|
|
||||||
var ctx = renderer.currentContext;
|
var ctx = renderer.currentContext;
|
||||||
|
|
||||||
if (SetTransform(renderer, ctx, src, camera, parentMatrix) && src.isFilled)
|
if (SetTransform(renderer, ctx, src, camera, parentMatrix) && src.isFilled)
|
||||||
|
|
|
@ -23,6 +23,8 @@ var SetTransform = require('../../../renderer/canvas/utils/SetTransform');
|
||||||
*/
|
*/
|
||||||
var LineCanvasRenderer = function (renderer, src, camera, parentMatrix)
|
var LineCanvasRenderer = function (renderer, src, camera, parentMatrix)
|
||||||
{
|
{
|
||||||
|
camera.addToRenderList(src);
|
||||||
|
|
||||||
var ctx = renderer.currentContext;
|
var ctx = renderer.currentContext;
|
||||||
|
|
||||||
if (SetTransform(renderer, ctx, src, camera, parentMatrix))
|
if (SetTransform(renderer, ctx, src, camera, parentMatrix))
|
||||||
|
|
|
@ -24,6 +24,8 @@ var SetTransform = require('../../../renderer/canvas/utils/SetTransform');
|
||||||
*/
|
*/
|
||||||
var PolygonCanvasRenderer = function (renderer, src, camera, parentMatrix)
|
var PolygonCanvasRenderer = function (renderer, src, camera, parentMatrix)
|
||||||
{
|
{
|
||||||
|
camera.addToRenderList(src);
|
||||||
|
|
||||||
var ctx = renderer.currentContext;
|
var ctx = renderer.currentContext;
|
||||||
|
|
||||||
if (SetTransform(renderer, ctx, src, camera, parentMatrix))
|
if (SetTransform(renderer, ctx, src, camera, parentMatrix))
|
||||||
|
|
|
@ -24,6 +24,8 @@ var SetTransform = require('../../../renderer/canvas/utils/SetTransform');
|
||||||
*/
|
*/
|
||||||
var RectangleCanvasRenderer = function (renderer, src, camera, parentMatrix)
|
var RectangleCanvasRenderer = function (renderer, src, camera, parentMatrix)
|
||||||
{
|
{
|
||||||
|
camera.addToRenderList(src);
|
||||||
|
|
||||||
var ctx = renderer.currentContext;
|
var ctx = renderer.currentContext;
|
||||||
|
|
||||||
if (SetTransform(renderer, ctx, src, camera, parentMatrix))
|
if (SetTransform(renderer, ctx, src, camera, parentMatrix))
|
||||||
|
|
|
@ -24,6 +24,8 @@ var SetTransform = require('../../../renderer/canvas/utils/SetTransform');
|
||||||
*/
|
*/
|
||||||
var StarCanvasRenderer = function (renderer, src, camera, parentMatrix)
|
var StarCanvasRenderer = function (renderer, src, camera, parentMatrix)
|
||||||
{
|
{
|
||||||
|
camera.addToRenderList(src);
|
||||||
|
|
||||||
var ctx = renderer.currentContext;
|
var ctx = renderer.currentContext;
|
||||||
|
|
||||||
if (SetTransform(renderer, ctx, src, camera, parentMatrix))
|
if (SetTransform(renderer, ctx, src, camera, parentMatrix))
|
||||||
|
|
|
@ -24,6 +24,8 @@ var SetTransform = require('../../../renderer/canvas/utils/SetTransform');
|
||||||
*/
|
*/
|
||||||
var TriangleCanvasRenderer = function (renderer, src, camera, parentMatrix)
|
var TriangleCanvasRenderer = function (renderer, src, camera, parentMatrix)
|
||||||
{
|
{
|
||||||
|
camera.addToRenderList(src);
|
||||||
|
|
||||||
var ctx = renderer.currentContext;
|
var ctx = renderer.currentContext;
|
||||||
|
|
||||||
if (SetTransform(renderer, ctx, src, camera, parentMatrix))
|
if (SetTransform(renderer, ctx, src, camera, parentMatrix))
|
||||||
|
|
|
@ -20,6 +20,8 @@
|
||||||
*/
|
*/
|
||||||
var SpriteCanvasRenderer = function (renderer, src, camera, parentMatrix)
|
var SpriteCanvasRenderer = function (renderer, src, camera, parentMatrix)
|
||||||
{
|
{
|
||||||
|
camera.addToRenderList(src);
|
||||||
|
|
||||||
renderer.batchSprite(src, src.frame, camera, parentMatrix);
|
renderer.batchSprite(src, src.frame, camera, parentMatrix);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -25,6 +25,8 @@ var TextCanvasRenderer = function (renderer, src, camera, parentMatrix)
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
camera.addToRenderList(src);
|
||||||
|
|
||||||
renderer.batchSprite(src, src.frame, camera, parentMatrix);
|
renderer.batchSprite(src, src.frame, camera, parentMatrix);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -22,6 +22,8 @@ var TileSpriteCanvasRenderer = function (renderer, src, camera, parentMatrix)
|
||||||
{
|
{
|
||||||
src.updateCanvas();
|
src.updateCanvas();
|
||||||
|
|
||||||
|
camera.addToRenderList(src);
|
||||||
|
|
||||||
renderer.batchSprite(src, src.frame, camera, parentMatrix);
|
renderer.batchSprite(src, src.frame, camera, parentMatrix);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -22,6 +22,8 @@ var VideoCanvasRenderer = function (renderer, src, camera, parentMatrix)
|
||||||
{
|
{
|
||||||
if (src.videoTexture)
|
if (src.videoTexture)
|
||||||
{
|
{
|
||||||
|
camera.addToRenderList(src);
|
||||||
|
|
||||||
renderer.batchSprite(src, src.frame, camera, parentMatrix);
|
renderer.batchSprite(src, src.frame, camera, parentMatrix);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue