00001 #ifndef _BITMAP_BASE_H_ 00002 #define _BITMAP_BASE_H_ 00003 00004 #include <nds.h> 00005 00006 namespace WoopsiUI { 00007 00011 class BitmapBase { 00012 public: 00013 00018 virtual const u16* getData() const = 0; 00019 00027 virtual const u16* getData(s16 x, s16 y) const = 0; 00028 00035 virtual const u16 getPixel(s16 x, s16 y) const = 0; 00036 00041 inline const u16 getWidth() const { return _width; }; 00042 00047 inline const u16 getHeight() const { return _height; }; 00048 00049 protected: 00050 u16 _width; 00051 u16 _height; 00052 }; 00053 } 00054 00055 #endif