fs/ras/fsCl8888.h

Go to the documentation of this file.
00001 /*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*/
00002 /*                          _______      ______    ______          __      */
00003 /*  ~ ~ ~ ~ ~ ~ ~ ~ ~ ~    / ____(_)___ / ___ /)  / ____/___  ____/ /__    */
00004 /*     [fsCl8888]         / /_  / / __ \\__ \|/  / /   / __ \/ __  / _ \   */
00005 /*       rev. 2          / __/ / / /_/ /__/ /   / /___/ /_/ / /_/ /  __/   */
00006 /*    5th Feb 2007      /_/   /_/ ,___/____/    \____/\____/\__,_/\___/    */
00007 /*     [ ] stable              /_/ (c) 2006-7 Filip STOKLAS (FipS)         */
00008 /*  ~ ~ ~ ~ ~ ~ ~ ~ ~ ~       http://HOLE.4FipS.com/fips_code.php          */
00009 /*                                                                         */
00010 /* This code is free for personal and commercial use. You may redistribute */
00011 /* it by any means. If you use the code for your own projects please give  */
00012 /* me credit. Please send a bug report. Don't alter or remove this header! */
00013 /*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*/
00014 #ifndef FS_RAS_FSCL8888_H
00015 #define FS_RAS_FSCL8888_H
00016 //---------------------------------------------------------------------------
00017 #if defined(FS_INCLUDE_USERDEFS) // inject user definition file on request
00018 #   include <fs/fsUserDefs.h>
00019 #endif
00020 //---------------------------------------------------------------------------
00021 namespace fs { namespace ras {
00022 //---------------------------------------------------------------------------
00024 class Cl8888_t
00025 {
00026  public:
00027  
00028     Cl8888_t() {}
00029     Cl8888_t(unsigned char r, unsigned char g, unsigned char b,
00030      unsigned char a = 255) : r(r), g(g), b(b), a(a) {}
00031 
00032     bool operator == (const Cl8888_t &RHS) const
00033      { return r == RHS.r && g == RHS.g && b == RHS.b && a == RHS.a; }
00034  
00035  public: // direct access is allowed
00036  
00037     unsigned char r, g, b, a;
00038 };
00039 //---------------------------------------------------------------------------
00040 }} // namespace fs::ras
00041 //---------------------------------------------------------------------------
00042 #endif // FS_RAS_FSCL8888_H

FipS' Code (Thu Feb 15 22:43:35 2007) - (c) Filip STOKLAS (FipS) - [ www ] [ Guest Book ]