예제 #1
0
 public override void Flush()
 {
     EndAtom      = null;
     matrix       = _identity;
     generatedBox = null;
     ObjPool <AttrTransformationAtom> .Release(this);
 }
예제 #2
0
 public override void Flush()
 {
     endBox   = null;
     endLimit = 0;
     attachedAtom.generatedBox = null;
     attachedAtom = null;
     ObjPool <AttrTransformationBox> .Release(this);
 }
예제 #3
0
        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);
        }
예제 #4
0
        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);
        }
예제 #5
0
        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);
        }