Skip to content

Commit

Permalink
Enable retrieving render bitmap from RenderCache
Browse files Browse the repository at this point in the history
  • Loading branch information
MarkOates committed Mar 11, 2019
1 parent 05df14c commit ef0590b
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
2 changes: 2 additions & 0 deletions include/allegro_flare/render_cache.h
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,8 @@ class RenderCache
void mark_as_dirty();
void mark_as_clean();
bool is_dirty();

ALLEGRO_BITMAP *get_surface_bitmap();
};


Expand Down
6 changes: 6 additions & 0 deletions src/graphics/render_cache.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -100,4 +100,10 @@ bool RenderCache::is_dirty()



ALLEGRO_BITMAP *RenderCache::get_surface_bitmap()
{
return render;
}



0 comments on commit ef0590b

Please sign in to comment.