Skip site navigation (1)Skip section navigation (2)

FreeBSD Manual Pages

  
 
  

home | help
create_rgb_table(3)		 Allegro manual 	     create_rgb_table(3)

NAME
     create_rgb_table  -  Generates  an RGB mapping table with lookup data for a
     palette. Allegro game programming library.

SYNOPSIS
     #include <allegro.h>

     void create_rgb_table(RGB_MAP  *table,  const  PALETTE  pal,  void  (*call-
     back)(int pos));

DESCRIPTION
     Fills  the  specified  RGB mapping table with lookup data for the specified
     palette. If the callback function is not NULL, it will be called 256  times
     during the calculation, allowing you to display a progress indicator. Exam-
     ple:

	RGB_MAP rgb_table;

	create_rgb_table(&rgb_table, palette, NULL);
	rgb_map = &rgb_table;

SEE ALSO
     rgb_map(3), ex3d(3), excolmap(3), exrgbhsv(3), exshade(3), extrans(3)

Allegro 			  version 4.4.3 	     create_rgb_table(3)

Want to link to this manual page? Use this URL:
<https://man.freebsd.org/cgi/man.cgi?query=create_rgb_table&sektion=3&manpath=FreeBSD+Ports+15.1.quarterly>

home | help