AtlasRegion Class
Definition
Namespace: Brine2D.Rendering.TextureAtlas
Represents a sub-region within a texture atlas. Describes where a sprite or texture is located in the packed atlas.
Inheritance System.Object → AtlasRegion
| Properties | |
|---|---|
| AtlasTexture | The underlying atlas texture. |
| Name | Unique identifier for this region \(typically the original filename without extension\). |
| OriginalHeight | Original height of the sprite before packing. |
| OriginalWidth | Original width of the sprite before packing \(useful for maintaining aspect ratios\). |
| SourceRect | The source rectangle in the atlas texture \(in pixels\). |
| UVCoordinates | Gets the normalized UV coordinates for the region \(0\-1 range\). Useful for GPU rendering and shader-based batching. |