Call addToRenderList

This commit is contained in:
Richard Davey 2021-01-07 14:52:08 +00:00
parent fd5324e1e2
commit 1c8662dc1f
22 changed files with 44 additions and 0 deletions

View file

@ -32,6 +32,8 @@ var DynamicBitmapTextCanvasRenderer = function (renderer, src, camera, parentMat
return;
}
camera.addToRenderList(src);
var textureFrame = src.frame;
var displayCallback = src.displayCallback;

View file

@ -32,6 +32,8 @@ var BitmapTextCanvasRenderer = function (renderer, src, camera, parentMatrix)
return;
}
camera.addToRenderList(src);
var textureFrame = src.frame;
var chars = src.fontData.chars;

View file

@ -37,6 +37,8 @@ var BlitterCanvasRenderer = function (renderer, src, camera, parentMatrix)
return;
}
camera.addToRenderList(src);
// Blend Mode + Scale Mode
ctx.globalCompositeOperation = renderer.blendModes[src.blendMode];

View file

@ -35,6 +35,8 @@ var GraphicsCanvasRenderer = function (renderer, src, camera, parentMatrix, rend
return;
}
camera.addToRenderList(src);
var lineAlpha = 1;
var fillAlpha = 1;
var lineColor = 0;

View file

@ -20,6 +20,8 @@
*/
var ImageCanvasRenderer = function (renderer, src, camera, parentMatrix)
{
camera.addToRenderList(src);
renderer.batchSprite(src, src.frame, camera, parentMatrix);
};

View file

@ -67,6 +67,8 @@ var ParticleManagerCanvasRenderer = function (renderer, emitterManager, camera,
continue;
}
camera.addToRenderList(emitter);
var followX = (emitter.follow) ? emitter.follow.x + emitter.followOffset.x : 0;
var followY = (emitter.follow) ? emitter.follow.y + emitter.followOffset.y : 0;

View file

@ -20,6 +20,8 @@
*/
var RenderTextureCanvasRenderer = function (renderer, src, camera, parentMatrix)
{
camera.addToRenderList(src);
renderer.batchSprite(src, src.frame, camera, parentMatrix);
};

View file

@ -25,6 +25,8 @@ var SetTransform = require('../../../renderer/canvas/utils/SetTransform');
*/
var ArcCanvasRenderer = function (renderer, src, camera, parentMatrix)
{
camera.addToRenderList(src);
var ctx = renderer.currentContext;
if (SetTransform(renderer, ctx, src, camera, parentMatrix))

View file

@ -24,6 +24,8 @@ var SetTransform = require('../../../renderer/canvas/utils/SetTransform');
*/
var CurveCanvasRenderer = function (renderer, src, camera, parentMatrix)
{
camera.addToRenderList(src);
var ctx = renderer.currentContext;
if (SetTransform(renderer, ctx, src, camera, parentMatrix))

View file

@ -24,6 +24,8 @@ var SetTransform = require('../../../renderer/canvas/utils/SetTransform');
*/
var EllipseCanvasRenderer = function (renderer, src, camera, parentMatrix)
{
camera.addToRenderList(src);
var ctx = renderer.currentContext;
if (SetTransform(renderer, ctx, src, camera, parentMatrix))

View file

@ -24,6 +24,8 @@ var SetTransform = require('../../../renderer/canvas/utils/SetTransform');
*/
var GridCanvasRenderer = function (renderer, src, camera, parentMatrix)
{
camera.addToRenderList(src);
var ctx = renderer.currentContext;
if (SetTransform(renderer, ctx, src, camera, parentMatrix))

View file

@ -23,6 +23,8 @@ var SetTransform = require('../../../renderer/canvas/utils/SetTransform');
*/
var IsoBoxCanvasRenderer = function (renderer, src, camera, parentMatrix)
{
camera.addToRenderList(src);
var ctx = renderer.currentContext;
if (SetTransform(renderer, ctx, src, camera, parentMatrix) && src.isFilled)

View file

@ -23,6 +23,8 @@ var SetTransform = require('../../../renderer/canvas/utils/SetTransform');
*/
var IsoTriangleCanvasRenderer = function (renderer, src, camera, parentMatrix)
{
camera.addToRenderList(src);
var ctx = renderer.currentContext;
if (SetTransform(renderer, ctx, src, camera, parentMatrix) && src.isFilled)

View file

@ -23,6 +23,8 @@ var SetTransform = require('../../../renderer/canvas/utils/SetTransform');
*/
var LineCanvasRenderer = function (renderer, src, camera, parentMatrix)
{
camera.addToRenderList(src);
var ctx = renderer.currentContext;
if (SetTransform(renderer, ctx, src, camera, parentMatrix))

View file

@ -24,6 +24,8 @@ var SetTransform = require('../../../renderer/canvas/utils/SetTransform');
*/
var PolygonCanvasRenderer = function (renderer, src, camera, parentMatrix)
{
camera.addToRenderList(src);
var ctx = renderer.currentContext;
if (SetTransform(renderer, ctx, src, camera, parentMatrix))

View file

@ -24,6 +24,8 @@ var SetTransform = require('../../../renderer/canvas/utils/SetTransform');
*/
var RectangleCanvasRenderer = function (renderer, src, camera, parentMatrix)
{
camera.addToRenderList(src);
var ctx = renderer.currentContext;
if (SetTransform(renderer, ctx, src, camera, parentMatrix))

View file

@ -24,6 +24,8 @@ var SetTransform = require('../../../renderer/canvas/utils/SetTransform');
*/
var StarCanvasRenderer = function (renderer, src, camera, parentMatrix)
{
camera.addToRenderList(src);
var ctx = renderer.currentContext;
if (SetTransform(renderer, ctx, src, camera, parentMatrix))

View file

@ -24,6 +24,8 @@ var SetTransform = require('../../../renderer/canvas/utils/SetTransform');
*/
var TriangleCanvasRenderer = function (renderer, src, camera, parentMatrix)
{
camera.addToRenderList(src);
var ctx = renderer.currentContext;
if (SetTransform(renderer, ctx, src, camera, parentMatrix))

View file

@ -20,6 +20,8 @@
*/
var SpriteCanvasRenderer = function (renderer, src, camera, parentMatrix)
{
camera.addToRenderList(src);
renderer.batchSprite(src, src.frame, camera, parentMatrix);
};

View file

@ -25,6 +25,8 @@ var TextCanvasRenderer = function (renderer, src, camera, parentMatrix)
return;
}
camera.addToRenderList(src);
renderer.batchSprite(src, src.frame, camera, parentMatrix);
};

View file

@ -22,6 +22,8 @@ var TileSpriteCanvasRenderer = function (renderer, src, camera, parentMatrix)
{
src.updateCanvas();
camera.addToRenderList(src);
renderer.batchSprite(src, src.frame, camera, parentMatrix);
};

View file

@ -22,6 +22,8 @@ var VideoCanvasRenderer = function (renderer, src, camera, parentMatrix)
{
if (src.videoTexture)
{
camera.addToRenderList(src);
renderer.batchSprite(src, src.frame, camera, parentMatrix);
}
};