- Main Page
- Classes
- Files

- File List

# 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
    00053         protected:
    00054                 const u16* _bitmap __attribute__ ((aligned (4)));
    00059                 inline BitmapWrapper(const BitmapWrapper& bitmap) { };
    00060         };
    00061 }
    00062
    00063 #endif