public void ComputeTransformMatrix() { if (NeedMatrixUpdate) { core.ModelMatrix = TotalModelMatrix = modelMatrix * parent.TotalModelMatrix; for (int i = 0; i < Items.Count; ++i) { Items[i].NeedMatrixUpdate = true; } NeedMatrixUpdate = false; TransformChanged(ref TotalModelMatrix); OnTransformChanged?.Invoke(this, new TransformArgs(ref TotalModelMatrix)); } }
private void MarkForUpdate() { if (_dirty) { return; } _dirty = true; for (int i = 0; i < _children.Count; i++) { _children[i].MarkForUpdate(); } OnTransformChanged?.Invoke(this); }
private void CommandTransform_Changed(object sender, EventArgs e) { OnTransformChanged?.Invoke(this, new EventArgs()); }
private void comboBoxMediaTypes_SelectedIndexChanged(object sender, EventArgs e) { OnTransformChanged?.Invoke(this, new EventArgs()); }