XML/TexCoords
< XML
Jump to navigation
Jump to search
<TexCoords> (child of <Texture>) samples part of an image file, using either four edges or a <Rect> child element.
<TexCoords left="" right="" top="" bottom=""> <Rect ULx="" ULy="" LLx="" LLy="" URx="" URy="" LRx="" LRy="" /> </TexCoords>
Attributes
- left (xs:float? ) -Left edge, normalized from left (0) to right (1).
- right (xs:float? ) - Right edge, normalized from left (0) to right (1).
- top (xs:float? ) - Top edge, normalized from top (0) to bottom (1).
- bottom (xs:float? ) - Bottom edge, normalized from top (0) to bottom (1).
Child elements
<Rect> has eight attributes to define an affine transformation from arbitrary (non-right-angled) corners.
- ULx (xs:float) - Upper-left, x coord, normalized from left (0) to right (1).
- ULy (xs:float) - Upper-left, y coord, normalized from top (0) to bottom (1).
- LLx (xs:float) - Lower-left, x coord, normalized from left (0) to right (1).
- LLy (xs:float) - Lower-left, y coord, normalized from top (0) to bottom (1).
- URx (xs:float) - Upper-right, x coord, normalized from left (0) to right (1).
- URy (xs:float) - Upper-right, y coord, normalized from top (0) to bottom (1).
- LRx (xs:float) - Lower-right, x coord, normalized from left (0) to right (1).
- LRy (xs:float) - Lower-right, y coord, normalized from top (0) to bottom (1).