LargeTexture

    Category: Core

    A Texture capable of storing many smaller Textures with offsets.

    A Texture capable of storing many smaller Textures with offsets.

    • add_piece ( Vector2 ofs, texture )

    Add another Texture to this , starting on offset “ofs”.


    • void clear ( )

    Clears the .


    • get_piece_count ( ) const

    Returns the number of pieces currently in this .



    • Texture get_piece_texture ( idx ) const

    Returns the Texture of the piece with index “idx”.


    • void set_piece_offset ( idx, Vector2 ofs )

    Sets the offset of the piece with index “idx” to “ofs”.


    • void set_piece_texture ( idx, Texture texture )

    Sets the of the piece with index “idx” to “texture”.