Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ CompareTo()

unsafe int Microsoft.Xna.Framework.Graphics.Texture.CompareTo ( Texture other)
inlinepackageinherited

Definition at line 364 of file Texture.cs.

365 {
366 IDirect3DBaseTexture9* comPtr = GetComPtr();
367 IDirect3DBaseTexture9* comPtr2 = other.GetComPtr();
368 if (comPtr > comPtr2)
369 {
370 return -1;
371 }
372 return (comPtr < comPtr2) ? 1 : 0;
373 }
unsafe IDirect3DBaseTexture9 * GetComPtr()

References Microsoft.Xna.Framework.Graphics.Texture.GetComPtr(), and System.other.

Referenced by Microsoft.Xna.Framework.Graphics.SpriteBatch.TextureComparer.Compare().