public readonly record struct VideoDrawOne 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 TextureThe planes.
public Rectangle TargetWhere to draw, in the surface's own units.
public Vector2 TextureScaleWhat to multiply the texture coordinate by. One for the whole picture.
public Vector2 TextureOffsetWhat to add afterwards. Zero for the whole picture.
public Color4 TintMultiplied into the colour. White is the picture untouched; the alpha fades it.
public uint OrderWhere it sits among the surfaces, lowest drawn first.
Methods (3)
public VideoDraw(VideoTexture Texture, Rectangle Target, Vector2 TextureScale, Vector2 TextureOffset, Color4 Tint, uint Order = 0)One video, where it goes, and how much of it to show.
public static VideoDraw Filling(VideoTexture texture, Rectangle target)A whole picture filling a rectangle.
public static VideoDraw From(VideoTexture texture, in VideoPlacement placement)A picture placed by VideoFit.
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