GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages


Manual Reference Pages  -  SET_COLOR_DEPTH (3)

NAME

set_color_depth - Sets the global pixel color depth. Allegro game programming library.

CONTENTS

Synopsis
Description
See Also

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)
Search for    or go to Top of page |  Section 3 |  Main Index


Allegro SET_COLOR_DEPTH (3) version 4.4.2

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with manServer 1.07.