Vixen
02b45cc4
csharp
public readonly record struct SpriteAppearance

How one sprite is drawn: the parts that are not the sprite itself.

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

Remarks

Unmanaged on purpose, so that it lives in the renderer's per-object arrays beside every other feature's data rather than in a dictionary of its own — see RenderDataHolder.

Fields and properties (6)

  • public Color4 Colour

    What to multiply the sample by.

  • public Vector2 Size

    How big to draw it in world units, or zero for the size it was authored at.

  • public SpriteFill Fill

    What the stretchable parts do.

  • public SpriteFlip Flip

    Which way round it is drawn.

  • public bool HollowCentre

    Whether a nine-slice leaves its middle undrawn.

  • public uint SortGroup

    Where this sprite sits in painting order, for a stage that sorts ByGroup.

Used by (4)

  • SpriteGeometryVixen.Rendering
  • SpriteRenderFeatureVixen.Rendering
  • SpriteRenderFeatureTestsVixen.Rendering.Tests
  • SpriteTestsVixen.Rendering.Tests