al_draw_bitmap_region
void al_draw_bitmap_region(ALLEGRO_BITMAP *bitmap,
float sx, float sy, float sw, float sh, float dx, float dy, int flags)
Introduced in 5.0.0
Draws a region of the given bitmap to the target bitmap.
- sx - source x
- sy - source y
- sw - source width (width of region to blit)
- sh - source height (height of region to blit)
- dx - destination x
- dy - destination y
- flags - same as for al_draw_bitmap
See also: al_draw_bitmap, al_draw_scaled_bitmap, al_draw_rotated_bitmap, al_draw_scaled_rotated_bitmap
Most helpful discussions:
- linking on ubuntu
- A shader that sets transparancy
- performance of sub-bitmaps
- Game Crashing and I'm not sure why?
- Titles for veteran a dot cc members
- [A5] How to optimize al_draw_textf
- How can i solve it?(draw_bitmap)
- al_hold_bitmap_drawing
- git format-patch: troubles with white space trailing
- Learning shaders, one and for all.
Other recent discussions:
- Al_draw_bitmap_region doesn't update the window
- Allegro 5 basic game loop
- Controlling threads
- Trying to target the same bitmap I's copying from...
- Thinking about upgrading my GPU
- Tint bitmap
- Transparancy Difference on windows and ubuntu
- Creating sub bitmap from display
- c++ Allegro 5 - drawing bitmap region over backgound
- RPG Player