Vixen
02b45cc4
csharp
public readonly record struct VideoDraw

One video, where it goes, and how much of it to show.

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

Remarks

The scale and the offset are VideoPlacement's, which is where the aspect-ratio arithmetic lives — in Vixen.Video rather than here, because a user interface needs the same answer and the two must not disagree.

Fields and properties (6)

  • public VideoTexture Texture

    The planes.

  • public Rectangle Target

    Where to draw, in the surface's own units.

  • public Vector2 TextureScale

    What to multiply the texture coordinate by. One for the whole picture.

  • public Vector2 TextureOffset

    What to add afterwards. Zero for the whole picture.

  • public Color4 Tint

    Multiplied into the colour. White is the picture untouched; the alpha fades it.

  • public uint Order

    Where it sits among the surfaces, lowest drawn first.

Methods (3)

Used by (8)

  • VideoGameVideoPlayback
  • VideoConstantsVixen.Video.Rendering
  • VideoConstantsTestsVixen.Video.Rendering.Tests
  • VideoRenderFeatureVixen.Video.Rendering
  • VideoRenderTargetVixen.Video.Rendering
  • VideoRendererVixen.Video.Rendering
  • VideoRendererTestsVixen.Video.Rendering.Tests
  • VideoSurfaceUploaderVixen.Video.Rendering