- _getData
Array _getData()
- _setData
void _setData(Array data)
- addPiece
long addPiece(Vector2 ofs, Texture texture)
Add another Texture to this LargeTexture, starting on offset "ofs".
- clear
void clear()
- getPieceCount
long getPieceCount()
Returns the number of pieces currently in this LargeTexture.
- getPieceOffset
Vector2 getPieceOffset(long idx)
Returns the offset of the piece with index "idx".
- getPieceTexture
Ref!Texture getPieceTexture(long idx)
Returns the Texture of the piece with index "idx".
- opAssign
LargeTexture opAssign(T n)
Undocumented in source. Be warned that the author may not have intended to support it.
- opEquals
bool opEquals(LargeTexture other)
Undocumented in source. Be warned that the author may not have intended to support it.
- opEquals
bool opEquals(typeof(null) n)
Undocumented in source. Be warned that the author may not have intended to support it.
- setPieceOffset
void setPieceOffset(long idx, Vector2 ofs)
Sets the offset of the piece with index "idx" to "ofs".
- setPieceTexture
void setPieceTexture(long idx, Texture texture)
Sets the Texture of the piece with index "idx" to "texture".
- setSize
void setSize(Vector2 size)
Sets the size of this LargeTexture.
A Texture capable of storing many smaller Textures with offsets.
You can dynamically add pieces(Texture) to this LargeTexture using different offsets.