Example #1
0
 public void SetFilter(TextureFilter filter)
 {
     if (this.state.filter.bits != filter.bits)
     {
         int errorCode = PsmTexture.SetFilter(this.handle, ref filter);
         if (errorCode != 0)
         {
             Error.ThrowNativeException(errorCode);
         }
         this.state.filter = filter;
     }
 }
Example #2
0
 public static extern int SetFilter(int handle, ref TextureFilter filter);
Example #3
0
 public TextureState()
 {
     this.filter        = new TextureFilter(TextureFilterMode.Linear, TextureFilterMode.Linear, TextureFilterMode.Linear);
     this.wrap          = new TextureWrap(TextureWrapMode.ClampToEdge, TextureWrapMode.ClampToEdge);
     this.maxAnisotropy = 1f;
 }