protected void SetSampler(IDrawContext drawContext) { if (this.UseLinearSampler.HasValue) { if (this.UseLinearSampler.Value) drawContext.UseLinearSampler(); else drawContext.UsePointSampler(); } }
public override int Draw(IDrawContext drawContext, Transform transform) { if (this.CameraMode == GameFramework.Cameras.CameraMode.Follow && drawContext.Camera.ZoomFactor > 1) { drawContext.UseLinearSampler(); drawContext.DrawPreDrawn(this); return 0; } return base.Draw(drawContext, transform); }