set_color_depth man page on DragonFly
[printable version]
set_color_depth(3) Allegro manual set_color_depth(3)
NAME
set_color_depth - Sets the global pixel color depth. Allegro game pro‐
gramming library.
SYNOPSIS
#include <allegro.h>
void set_color_depth(int depth);
DESCRIPTION
Sets the pixel format to be used by subsequent calls to set_gfx_mode()
and create_bitmap(). Valid depths are 8 (the default), 15, 16, 24, and
32 bits. Example:
set_color_depth(32);
if (set_gfx_mode(GFX_AUTODETECT, 640, 480, 0, 0) != 0) {
abort_on_error("Couldn't set a 32 bit color resolution");
}
Note that the screen color depth won't change until the next successful
call to set_gfx_mode().
SEE ALSO
get_color_depth(3), set_gfx_mode(3), set_color_conversion(3),
makecol(3), getr(3), desktop_color_depth(3)
Allegro version 4.4.2 set_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]
Polarhome, production since 1999.
Member of Polarhome portal.
Based on Fawad Halim's script.
....................................................................
|
Vote for polarhome
|