Skip to main content
Version: 1.0.0-preview.45

Velaptor.Graphics.AtlasSubTextureData

Velaptor​

Velaptor.Graphics​

AtlasSubTextureData Struct​

Holds data about a texture atlas sub texture.

public readonly struct AtlasSubTextureData

Properties​

Bounds​

Gets the bounds of the sub texture data.

public System.Drawing.Rectangle Bounds { get; init; }

Property Value​

System.Drawing.Rectangle

FrameIndex​

Gets the index of the sub texture frame.

public int FrameIndex { get; init; }

Property Value​

System.Int32

Remarks​

This is used for frames of animation. A negative value indicates whether the sub texture is part of any animation frames.

Name​

Gets the name of the sub texture.

public string Name { get; init; }

Property Value​

System.String