# Texture Definition Texture metadata: which sprites a texture is built from, and the average colour it is drawn as when it is too small on screen to be worth sampling. - - - ## TextureDefinition.Create ```pascal function TTextureDefinition.Create(id: Integer; const data: TByteArray; rev233: Boolean = True): TTextureDefinition; static; ``` Decodes a texture's metadata - the sprites it is made of and the average colour it is drawn as when it is too small on screen to be worth sampling. Build 233 replaced the old multi-sprite blended format with a single sprite one; pass `rev233` as False to read a cache older than that. - - - ## TTextureDefinitionArray.IndexOf ```pascal function TTextureDefinitionArray.IndexOf(id: Integer): Integer; ``` The position of `id` in the array, or `-1` if there is no such texture. Texture definitions are stored one per id with no gaps, so an id is its own index; this exists to keep that assumption in one place.