desktop_color_depth man page on DragonFly

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

desktop_color_depth(3)		Allegro manual		desktop_color_depth(3)

NAME
       desktop_color_depth  -  Finds out the desktop color depth. Allegro game
       programming library.

SYNOPSIS
       #include <allegro.h>

       int desktop_color_depth();

DESCRIPTION
       Finds out the currently selected desktop color depth. You can use  this
       information  to make your program use the same color depth as the desk‐
       top, which will likely make it run faster because  the  graphic	driver
       won't be doing unnecessary color conversions behind your back.

       Under some OSes, switching to a full screen graphics mode may automati‐
       cally change the desktop color depth. You have, therefore, to call this
       function before setting any graphics mode in order to retrieve the real
       desktop color depth. Example:

	  allegro_init();
	  ...
	  if ((depth = desktop_color_depth()) != 0) {
	     set_color_depth(depth);
	  }

RETURN VALUE
       Returns the color depth or zero on platforms where this information  is
       not available or does not apply.

SEE ALSO
       get_desktop_resolution(3), set_color_depth(3), set_gfx_mode(3)

Allegro				 version 4.4.2		desktop_color_depth(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