Download Tutorial C Files H Files

dg_spritesheet_free

This function is used to destroy the spritesheet.

Usage

void dg_spritesheet_free(dg_spritesheet_t *spritesheet);

Example

dg_spritesheet_free(sheet);

Source code

void dg_spritesheet_free(dg_spritesheet_t *spritesheet)
{
    sfTexture_destroy(spritesheet->sheet);
    free(spritesheet);
}