Skip to content

Commit f213fde

Browse files
author
Travis Gesslein
committed
removed vertex stuff
1 parent f7afb64 commit f213fde

File tree

3 files changed

+0
-36
lines changed

3 files changed

+0
-36
lines changed

cocos2d/core/base-nodes/BaseNodesPropertyDefine.js

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -52,9 +52,6 @@ cc._tmp.PrototypeCCNode = function () {
5252
_p.zIndex;
5353
cc.defineGetterSetter(_p, "zIndex", _p.getLocalZOrder, _p.setLocalZOrder);
5454
/** @expose */
55-
_p.vertexZ;
56-
cc.defineGetterSetter(_p, "vertexZ", _p.getVertexZ, _p.setVertexZ);
57-
/** @expose */
5855
_p.rotation;
5956
cc.defineGetterSetter(_p, "rotation", _p.getRotation, _p.setRotation);
6057
/** @expose */

cocos2d/core/base-nodes/CCNode.js

Lines changed: 0 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,6 @@ cc.s_globalOrderOfArrival = 1;
101101
* @property {Number} skewX - Skew x
102102
* @property {Number} skewY - Skew y
103103
* @property {Number} zIndex - Z order in depth which stands for the drawing order
104-
* @property {Number} vertexZ - WebGL Z vertex of this node, z order works OK if all the nodes uses the same openGL Z vertex
105104
* @property {Number} rotation - Rotation of node
106105
* @property {Number} rotationX - Rotation on x axis
107106
* @property {Number} rotationY - Rotation on y axis
@@ -130,7 +129,6 @@ cc.s_globalOrderOfArrival = 1;
130129
*/
131130
cc.Node = cc.Class.extend(/** @lends cc.Node# */{
132131
_localZOrder: 0, ///< Local order (relative to its siblings) used to sort the node
133-
_vertexZ: 0.0,
134132

135133
_rotationX: 0,
136134
_scaleX: 1.0,
@@ -421,33 +419,6 @@ cc.Node = cc.Class.extend(/** @lends cc.Node# */{
421419
this.setLocalZOrder(z);
422420
},
423421

424-
/**
425-
* Returns WebGL Z vertex of this node.
426-
* @function
427-
* @return {Number} WebGL Z vertex of this node
428-
*/
429-
getVertexZ: function () {
430-
return this._vertexZ;
431-
},
432-
433-
/**
434-
* <p>
435-
* Sets the real WebGL Z vertex. <br/>
436-
* <br/>
437-
* Differences between openGL Z vertex and cocos2d Z order: <br/>
438-
* - WebGL Z modifies the Z vertex, and not the Z order in the relation between parent-children <br/>
439-
* - WebGL Z might require to set 2D projection <br/>
440-
* - cocos2d Z order works OK if all the nodes uses the same WebGL Z vertex. eg: vertexZ = 0 <br/>
441-
* <br/>
442-
* @warning Use it at your own risk since it might break the cocos2d parent-children z order
443-
* </p>
444-
* @function
445-
* @param {Number} Var
446-
*/
447-
setVertexZ: function (Var) {
448-
this._vertexZ = Var;
449-
},
450-
451422
/**
452423
* Returns the rotation (angle) of the node in degrees. 0 is the default rotation angle. Positive values rotate node clockwise.
453424
* @function

cocos2d/core/utils/CCProfiler.js

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,6 @@ cc.profiler = (function () {
2020
_FPSLabel = new cc.LabelTTF("000.0", "Arial", fontSize);
2121
_SPFLabel = new cc.LabelTTF("0.000", "Arial", fontSize);
2222
_drawsLabel = new cc.LabelTTF("0000", "Arial", fontSize);
23-
24-
_FPSLabel.setVertexZ(0.9999);
25-
_SPFLabel.setVertexZ(0.9999);
26-
_drawsLabel.setVertexZ(0.9999);
2723

2824
_drawsLabel.setPosition(_drawsLabel.width / 2 + locStatsPosition.x, _drawsLabel.height * 5 / 2 + locStatsPosition.y);
2925
_SPFLabel.setPosition(_SPFLabel.width / 2 + locStatsPosition.x, _SPFLabel.height * 3 / 2 + locStatsPosition.y);

0 commit comments

Comments
 (0)