set_clip_state(3alleg4)

set_clip_state3alleg4

Turns on or off the clipping of a bitmap. allegro game programming library.

Usage

#include <allegro.h>

void set_clip_state(BITMAP *bitmap, int state)

Overview

Turns on (if state is non-zero) or off (if state is zero) clipping for the specified bitmap. Turning clipping off may slightly speed up some drawing operations (usually a negligible difference, although every little helps) but will result in your program dying a horrible death if you try to draw beyond the edges of the bitmap.

Releases

7 releases since Debian 7 (Wheezy); the text changed 1 time.

  1. 7–10
  2. 11–13

From allegro4-doc 2:4.4.3.1-5 in Debian 13 (Trixie). Parsed by carta from the page's man source.