Woopsi 1.0
GUI Framework for Nintendo DS Homebrew

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 
00067         protected:
00068                 const u16* _bitmap __attribute__ ((aligned (4)));               
00073                 inline BitmapWrapper(const BitmapWrapper& bitmap) { };
00074         };
00075 }
00076 
00077 #endif