CrystalSpace

Public API Reference

Main Page | Modules | Class Hierarchy | Alphabetical List | Class List | File List | Class Members | File Members | Related Pages

pixfmt.h

00001 /*
00002     pixfmt.h
00003    
00004     Created by Matt Reda on Thu Jan 17 2002.
00005 
00006     This file defines what pixel format to use in 24 bit mode if 
00007     the compiler does not pass one in    
00008 */
00009 
00010 
00011 #ifndef __CS_PIXFMT_H__
00012 #define __CS_PIXFMT_H__
00013 
00014 // Whether the renderer uses ARGB or ABGR should not be tied directly to
00015 // the endianness of the platform.  But in order not to break code that
00016 // is used to the old way of doing things, we use the following #define's
00017 // which can be overridden for certain platforms
00018 #define CS_24BIT_PIXEL_ARGB 0
00019 #define CS_24BIT_PIXEL_ABGR 1
00020 
00021 #if !defined(CS_24BIT_PIXEL_LAYOUT)
00022 #  if defined(CS_LITTLE_ENDIAN)
00023 #    define CS_24BIT_PIXEL_LAYOUT CS_24BIT_PIXEL_ARGB
00024 #  else
00025 #    define CS_24BIT_PIXEL_LAYOUT CS_24BIT_PIXEL_ABGR
00026 #  endif
00027 #endif
00028 
00029 
00030 #endif // __CS_PIXFMT_H__
00031 

Generated for Crystal Space by doxygen 1.3.9.1