fs/ras/fsTgaLdr.h

Go to the documentation of this file.
00001 /*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*/
00002 /*                          _______      ______    ______          __      */
00003 /*  ~ ~ ~ ~ ~ ~ ~ ~ ~ ~    / ____(_)___ / ___ /)  / ____/___  ____/ /__    */
00004 /*     [fsTgaLdr]         / /_  / / __ \\__ \|/  / /   / __ \/ __  / _ \   */
00005 /*       rev. 4          / __/ / / /_/ /__/ /   / /___/ /_/ / /_/ /  __/   */
00006 /*    5th Feb 2007      /_/   /_/ ,___/____/    \____/\____/\__,_/\___/    */
00007 /*     [x] 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_FSTGALDR_H
00015 #define FS_RAS_FSTGALDR_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 
00029 class TgaLdr_t
00030 {
00031  public:
00032 
00034     struct PxFmt888_t { unsigned char r, g, b; };
00036     struct PxFmt8888_t { unsigned char r, g, b, a; };
00037 
00039     explicit TgaLdr_t(const char *pszFile);
00040     ~TgaLdr_t();
00042     bool IsValid() const;
00043 
00045     int GetW() const;
00047     int GetH() const;
00049     const PxFmt888_t * GetData888() const;
00051     const PxFmt8888_t * GetData8888() const;
00052 
00053  private:
00054 
00055     TgaLdr_t(); 
00056     TgaLdr_t(const TgaLdr_t &); 
00057     TgaLdr_t & operator = (const TgaLdr_t &); 
00058 
00059     void *m_pImpl; 
00060 };
00061 //---------------------------------------------------------------------------
00062 }} // namespace fs::ras
00063 //---------------------------------------------------------------------------
00064 #endif // FS_RAS_FSTGALDR_H

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