public bool Commit(DeviceContextProxy deviceContext) { if (isGeometryChanged) { lock (VertexBuffer) { if (isGeometryChanged) { OnSubmitGeometries(deviceContext); isGeometryChanged = false; InvalidateRender?.Invoke(this, EventArgs.Empty); return(true); } } } return(false); }
public void RaiseInvalidateRender() { InvalidateRender?.Invoke(this, EventArgs.Empty); }
public void InvalidateGeometries() { isGeometryChanged = true; InvalidateRender?.Invoke(this, EventArgs.Empty); }
protected void RaiseInvalidateRender() { InvalidateRender?.Invoke(this, EventArgs.Empty); }