LargeTexture
A capable of storing many smaller textures with offsets.
A Texture capable of storing many smaller textures with offsets.
You can dynamically add pieces (s) to this using different offsets.
int | ( Vector2 ofs, texture ) |
void | clear ( ) |
get_piece_count ( ) const | |
get_piece_offset ( idx ) const | |
Texture | ( int idx ) const |
void | ( int idx, ofs ) |
void | set_piece_texture ( idx, Texture texture ) |
void | ( Vector2 size ) |
- add_piece ( Vector2 ofs, texture )
- void clear ( )
Clears the LargeTexture
.
- int get_piece_count ( ) const
Returns the number of pieces currently in this LargeTexture
.
Returns the offset of the piece with the index idx
.
- get_piece_texture ( int idx ) const
- void set_piece_offset ( idx, Vector2 ofs )
Sets the offset of the piece with the index idx
to ofs
.
- void set_piece_texture ( idx, Texture texture )
Sets the of the piece with index idx
to .
Sets the size of this LargeTexture
.