mirror of
https://github.com/photonstorm/phaser
synced 2025-02-18 06:58:30 +00:00
Graphics and Shape now use the new Multi Pipeline
This commit is contained in:
parent
9879a1062e
commit
2712e87ca2
2 changed files with 2 additions and 4 deletions
|
@ -20,7 +20,6 @@ var GameObject = require('../GameObject');
|
|||
var GetFastValue = require('../../utils/object/GetFastValue');
|
||||
var GetValue = require('../../utils/object/GetValue');
|
||||
var MATH_CONST = require('../../math/const');
|
||||
var PIPELINES_CONST = require('../../renderer/webgl/pipelines/const');
|
||||
var Render = require('./GraphicsRender');
|
||||
|
||||
/**
|
||||
|
@ -108,7 +107,7 @@ var Graphics = new Class({
|
|||
GameObject.call(this, scene, 'Graphics');
|
||||
|
||||
this.setPosition(x, y);
|
||||
this.initPipeline(PIPELINES_CONST.GRAPHICS_PIPELINE);
|
||||
this.initPipeline();
|
||||
|
||||
/**
|
||||
* The horizontal display origin of the Graphics.
|
||||
|
|
|
@ -8,7 +8,6 @@ var Class = require('../../utils/Class');
|
|||
var Components = require('../components');
|
||||
var GameObject = require('../GameObject');
|
||||
var Line = require('../../geom/line/Line');
|
||||
var PIPELINES_CONST = require('../../renderer/webgl/pipelines/const');
|
||||
|
||||
/**
|
||||
* @classdesc
|
||||
|
@ -204,7 +203,7 @@ var Shape = new Class({
|
|||
*/
|
||||
this.height = 0;
|
||||
|
||||
this.initPipeline(PIPELINES_CONST.GRAPHICS_PIPELINE);
|
||||
this.initPipeline();
|
||||
},
|
||||
|
||||
/**
|
||||
|
|
Loading…
Add table
Reference in a new issue