MCPcopy
hub / github.com/phaserjs/phaser / makeLayer

Function makeLayer

tests/gameobjects/layer/LayerWebGLRenderer.test.js:78–92  ·  view source on GitHub ↗
(options)

Source from the content-addressed store, hash-verified

76}
77
78function makeLayer (options)
79{
80 options = options || {};
81 var layer = {
82 list: options.list || [],
83 alpha: options.alpha !== undefined ? options.alpha : 1,
84 blendMode: options.blendMode !== undefined ? options.blendMode : SKIP_CHECK,
85 depthSortCalled: false,
86 depthSort: function ()
87 {
88 this.depthSortCalled = true;
89 }
90 };
91 return layer;
92}
93
94describe('LayerWebGLRenderer', function ()
95{

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…