D:/Zythum/DinoKod/Bitmap/Bitmap.h

00001 //---------------------------------------------------------------------------------------------
00002 //      This file is a part of "DinoKod".
00003 //      Copyright © 2003 Dino Productions. All Rights Reserved.
00004 //      
00005 //      File                    : Bitmap.h
00006 //      Author                  : Sebastien LEIX        sebastien.leix@wanadoo.fr
00007 //      Date                    : 07/09/2002
00008 //      Modification    :
00009 //
00010 //---------------------------------------------------------------------------------------------
00011 #ifndef __BITMAP_H__
00012 #define __BITMAP_H__
00013 
00014 #include "Bitmap/BitmapDll.h"
00015 #include "Common/File.h"
00016 #include "Common/Color.h"
00017 #include "Common/Bank.h"
00018 
00019 //---------------------------------------------------------------------------------------------------------------------
00020 class BITMAP_API KBitmap : public KFile
00021 {
00022 protected:
00023         u32                             m_Width;
00024         u32                             m_Height;
00025         u8                              m_Bpp;
00026         KRgba*                  m_pBitmap;
00027         bool                    m_bAlpha;
00028 
00029 public:
00030                                         KBitmap();
00031         virtual                 ~KBitmap();
00032 
00033         void                    SetWidth( u32 Width )                           { m_Width = Width;                      }
00034         void                    SetHeight( u32 Height )                         { m_Height = Height;            }
00035         void                    SetBpp( u8 Bpp )                                        { m_Bpp = Bpp;                          }
00036         void                    SetBitmap( KRgba* pBitmap )                     { m_pBitmap = pBitmap;          }
00037 
00038         u32                             GetWidth()                                                      { return m_Width;                       }
00039         u32                             GetHeight()                                                     { return m_Height;                      }
00040         u8                              GetBpp()                                                        { return m_Bpp;                         }
00041         KRgba*                  GetBitmap()                                                     { return m_pBitmap;                     }
00042         bool                    HasAlpha()                                                      { return m_bAlpha;                      }
00043         KRgba                   GetPixel( u32 x, u32 y );
00044 };
00045 
00046 //---------------------------------------------------------------------------------------------------------------------
00047 class BITMAP_API KBitmapBank : public KBank< KBitmap, KHANDLE >
00048 {
00049 public:
00050         KBitmapBank();
00051 
00052 };
00053 
00054 #endif  __BITMAP_H__

Generated on Sun Mar 25 20:02:10 2007 for Zythum Project by  doxygen 1.5.1-p1