ALLEGRO_LOCKED_REGION man page on DragonFly

Man page or keyword search:  
man Server   44335 pages
apropos Keyword Search (all sections)
Output format
DragonFly logo
[printable version]

ALLEGRO_LOCKED_REGION(3)			      ALLEGRO_LOCKED_REGION(3)

NAME
       ALLEGRO_LOCKED_REGION - Allegro 5 API

SYNOPSIS
	      #include <allegro5/allegro.h>

	      typedef struct ALLEGRO_LOCKED_REGION ALLEGRO_LOCKED_REGION;

DESCRIPTION
       Users  who  wish to manually edit or read from a bitmap are required to
       lock it first.	The  ALLEGRO_LOCKED_REGION  structure  represents  the
       locked  region  of  the	bitmap.	  This call will work with any bitmap,
       including memory bitmaps.

	      typedef struct ALLEGRO_LOCKED_REGION {
		  void *data;
		  int format;
		  int pitch;
		  int pixel_size;
	      } ALLEGRO_LOCKED_REGION;

       · data points to the leftmost pixel of the first row  (row  0)  of  the
	 locked region.

       · format indicates the pixel format of the data.

       · pitch	gives  the  size  in  bytes of a single row (also known as the
	 stride).  The pitch may be greater  than  width * pixel_size  due  to
	 padding; this is not uncommon.	 It is also not uncommon for the pitch
	 to be negative (the bitmap may be upside down).

       · pixel_size is the number of bytes used to represent a single pixel.

SEE ALSO
       al_lock_bitmap(3), al_lock_bitmap_region(3), al_unlock_bitmap(3), ALLE‐
       GRO_PIXEL_FORMAT(3)

Allegro reference manual			      ALLEGRO_LOCKED_REGION(3)
[top]

List of man pages available for DragonFly

Copyright (c) for man pages and the logo by the respective OS vendor.

For those who want to learn more, the polarhome community provides shell access and support.

[legal] [privacy] [GNU] [policy] [cookies] [netiquette] [sponsors] [FAQ]
Tweet
Polarhome, production since 1999.
Member of Polarhome portal.
Based on Fawad Halim's script.
....................................................................
Vote for polarhome
Free Shell Accounts :: the biggest list on the net