private void Transform_MarkedDirty(UITransform transform, DirtMarkType type) { if (type.HasFlags(DirtMarkType.DrawOrder)) { FlagForSort(); } }
private void Transform_MarkedDirty(DirtMarkType marks) { if (marks.HasAnyFlag(DirtMarkType.Boundaries, DirtMarkType.Enabled)) { _needsBoundsUpdate = true; } }
private void Transform_MarkedDirty(DirtMarkType type) { if (type.HasAnyFlag(DirtMarkType.DrawOrder)) { FlagForSort(); } }
private void Transform_MarkedDirty(UITransform transform, DirtMarkType marks) { if (marks.HasFlags(DirtMarkType.Boundaries, DirtMarkType.Enabled)) { _boundsNeedUpdate = true; } }
public override void Update(GameTime time) { if (Dirty == false) { return; } DirtMarkType marks = FULL_TRANSFORM_UPDATE; if (DirtMarks.HasAnyFlag(DirtMarkType.Enabled)) { marks |= DirtMarkType.Enabled; } lock (SyncRoot) { for (int i = 0, count = _transforms.Count; i < count; i++) { _transforms[i].InvokeMarkedDirtyInternal(marks); } } Dirty = false; ClearDirtMarks(); }