Vixen
02b45cc4
csharp
public enum SpriteFlip

Which way round a sprite is drawn.

No guide page documents this yet — the page shows what the code says about itself.

Remarks

⚠ Mirrored geometry and mirrored UVs, which is why this is not just a UV swap. Swapping the texture coordinates alone mirrors each cell of a nine-slice in place — the left border would show mirrored left-border art still on the left. Mirroring the cell layout as well is what puts the right-hand corner on the left, and doing both keeps the triangle winding the way it was so a back-face cull does not eat every flipped sprite.

Fields and properties (3)

  • None

    As drawn.

  • Horizontal

    Mirrored left to right about the pivot.

  • Vertical

    Mirrored top to bottom about the pivot.

Used by (3)

  • SpriteAppearanceVixen.Rendering
  • SpriteGeometryVixen.Rendering
  • SpriteTestsVixen.Rendering.Tests