|
|
|
|
|
|
float _miterLimit; |
|
|
|
float _fringe; |
|
|
|
|
|
|
|
public static uiPathCache create(float scale) { |
|
|
|
uiPath.uiPathShapeHint _shapeHint; |
|
|
|
|
|
|
|
public static uiPathCache create(float scale, uiPath.uiPathShapeHint shapeHint) { |
|
|
|
newPathCache._shapeHint = shapeHint; |
|
|
|
return newPathCache; |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
return true; |
|
|
|
} |
|
|
|
|
|
|
|
public bool canSkipAAHairline { |
|
|
|
get { return this._shapeHint == uiPath.uiPathShapeHint.Rect; } |
|
|
|
} |
|
|
|
|
|
|
|
public override void clear() { |
|
|
|
this._paths.Clear(); |
|
|
|
this._points.Clear(); |
|
|
|
|
|
|
ObjectPool<uiMeshMesh>.release(this._strokeMesh); |
|
|
|
this._strokeMesh = null; |
|
|
|
|
|
|
|
this._shapeHint = uiPath.uiPathShapeHint.Other; |
|
|
|
} |
|
|
|
|
|
|
|
public uiPathCache() { |
|
|
|
|
|
|
|
|
|
|
uiList<Vector3> _strokeVertices = null; |
|
|
|
uiList<Vector2> _strokeUV = null; |
|
|
|
if (aa > 0.0f) { |
|
|
|
if (aa > 0.0f && !this.canSkipAAHairline) { |
|
|
|
_strokeVertices = ObjectPool<uiList<Vector3>>.alloc(); |
|
|
|
_strokeUV = ObjectPool<uiList<Vector2>>.alloc(); |
|
|
|
cvertices = 0; |
|
|
|