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