public override void Flush() { EndAtom = null; matrix = _identity; generatedBox = null; ObjPool <AttrTransformationAtom> .Release(this); }
public override void Flush() { endBox = null; endLimit = 0; attachedAtom.generatedBox = null; attachedAtom = null; ObjPool <AttrTransformationBox> .Release(this); }
public static AttrTransformationBox Get(AttrTransformationAtom atom, AttrTransformationBox endBox) { var box = ObjPool <AttrTransformationBox> .Get(); box.pivotMode = atom.pivotMode; box.endBox = endBox; box.attachedAtom = atom; return(box); }
public override Box CreateBox() { if (generatedBox != null) { return(generatedBox); } generatedBox = AttrTransformationBox.Get(this, EndAtom == null ? null : (AttrTransformationBox)EndAtom.CreateBox()); //ScaleTransformation(ref generatedBox.matrix, Vector3.one * TexContext.Scale); return(generatedBox); }
public override Box CreateBox(TexStyle style) { if (generatedBox != null) { return(generatedBox); } generatedBox = AttrTransformationBox.Get(this, EndAtom == null ? null : (AttrTransformationBox)EndAtom.CreateBox(style)); //ScaleTransformation(ref generatedBox.matrix, Vector3.one * TexUtility.SizeFactor(style)); return(generatedBox); }