Struct LargeTexture
A Texture capable of storing many smaller textures with offsets.
struct LargeTexture
;
You can dynamically add pieces (Textures) to this LargeTexture using different offsets.
Properties
| Name | Type | Description |
|---|---|---|
_data[get, set]
|
Array |
Methods
| Name | Description |
|---|---|
_getData
|
|
_setData
|
|
addPiece
|
Adds texture to this LargeTexture, starting on offset ofs.
|
clear
|
Clears the LargeTexture.
|
getPieceCount
|
Returns the number of pieces currently in this LargeTexture.
|
getPieceOffset
|
Returns the offset of the piece with the index idx.
|
getPieceTexture
|
Returns the Texture of the piece with the index idx.
|
setPieceOffset
|
Sets the offset of the piece with the index idx to ofs.
|
setPieceTexture
|
Sets the Texture of the piece with index idx to texture.
|
setSize
|
Sets the size of this LargeTexture.
|