Skip to content

Instantly share code, notes, and snippets.

static void bitmap_source_release_content(ALLEGRO_GC_BITMAPSOURCE *bitmap_source)
{
if ( bitmap_source->type == BS_NORMAL )
{
if ( bitmap_source->name_to_bitmap )
{
/* free string key */
AL_AATREE_ITERATOR* iterator = al_aa_begin(bitmap_source->name_to_bitmap);
while (iterator && al_aa_next(iterator))
/* Function: al_transform_rotation
*/
void al_transform_rotation(const ALLEGRO_TRANSFORM *trans, float* rotation)
{
float t = *rotation;
*rotation = t - atan2f(trans->m[0][1], trans->m[0][0]);
}