A Texture capable of storing many smaller Textures with offsets.
A Texture capable of storing many smaller Textures with offsets. You can dynamically add pieces([Texture]) to this [code]LargeTexture[/code] using different offsets.
Add another [Texture] to this [code]LargeTexture[/code], starting on offset "ofs".
Clears the [code]LargeTexture[/code].
Returns the number of pieces currently in this [code]LargeTexture[/code].
Returns the offset of the piece with index "idx".
Returns the [Texture] of the piece with index "idx".
Sets the offset of the piece with index "idx" to "ofs".
Sets the [Texture] of the piece with index "idx" to "ofs".
Sets the size of this [code]LargeTexture[/code].
- Returns an [Array] with offsets and textures data of each added piece. Schema is [offsets1, texture1, offsets2, texture2, large_texture_size]. [code]offsets[/code] : [Vector2] offsets of the texture piece. [code]second[/code] : [StreamTexture] data of the texture piece. [code]last entry[/code] : [Vector2] size of the entire large texture.