Woopsi 1.3
Nintendo DS Gui Framework
libwoopsi/include/bitmapwrapper.h
00001 #ifndef _BITMAP_WRAPPER_H_
00002 #define _BITMAP_WRAPPER_H_
00003 
00004 #include <nds.h>
00005 #include "bitmapbase.h"
00006 
00007 namespace WoopsiUI {
00008 
00014     class BitmapWrapper : public BitmapBase {
00015     public:
00016 
00023         BitmapWrapper(const u16* data, u16 width, u16 height);
00024 
00028         virtual inline ~BitmapWrapper() { };
00029         
00036         const u16 getPixel(s16 x, s16 y) const;
00037 
00042         inline const u16* getData() const { return _bitmap; };
00043 
00051         const u16* getData(s16 x, s16 y) const;
00052 
00065         void copy(s16 x, s16 y, u32 size, u16* dest) const;
00066 
00071         inline const u16 getWidth() const { return _width; };
00072 
00077         inline const u16 getHeight() const { return _height; };
00078 
00079     protected:
00080         const u16* _bitmap __attribute__ ((aligned (4)));   
00081         u16 _width;                                         
00082         u16 _height;                                        
00087         inline BitmapWrapper(const BitmapWrapper& bitmap) { };
00088     };
00089 }
00090 
00091 #endif
 All Classes Functions Variables Enumerations Enumerator