Woopsi 1.0 GUI Framework for Nintendo DS Homebrew

- Main Page
- Classes
- Files

- File List

# bitmapbase.h

    00001 #ifndef _BITMAP_BASE_H_
    00002 #define _BITMAP_BASE_H_
    00003
    00004 #include <nds.h>
    00005
    00006 namespace WoopsiUI {
    00007
    00019         class BitmapBase {
    00020         public:
    00021
    00025                 virtual inline ~BitmapBase() { };
    00026
    00031                 virtual const u16* getData() const = 0;
    00032
    00040                 virtual const u16* getData(s16 x, s16 y) const = 0;
    00041
    00048                 virtual const u16 getPixel(s16 x, s16 y) const = 0;
    00049
    00062                 virtual void copy(s16 x, s16 y, u32 size, u16* dest) const = 0;
    00063
    00068                 inline const u16 getWidth() const { return _width; };
    00069
    00074                 inline const u16 getHeight() const { return _height; };
    00075
    00076         protected:
    00077                 u16 _width;
    00078                 u16 _height;
    00079         };
    00080 }
    00081
    00082 #endif