al_set_clipping_rectangle

void al_set_clipping_rectangle(int x, int y, int width, int height)
Introduced in 5.0.0

Set the region of the target bitmap or display that pixels get clipped to. The default is to clip pixels to the entire bitmap.

See also: al_get_clipping_rectangle

Examples: ex_clip, ex_filter, ex_lines, ex_prim, ex_rotate, ex_scale


Most helpful discussions:

Other recent discussions: