CrystalSpace

Public API Reference

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

pixfmt.h

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

Generated for Crystal Space by doxygen 1.4.4