示例#1
0
 protected void SetSampler(IDrawContext drawContext)
 {
     if (this.UseLinearSampler.HasValue)
     {
         if (this.UseLinearSampler.Value)
             drawContext.UseLinearSampler();
         else
             drawContext.UsePointSampler();
     }
 }