- 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
    00054                 inline const u16 getWidth() const { return _width; };
    00055
    00060                 inline const u16 getHeight() const { return _height; };
    00061
    00062         protected:
    00063                 u16 _width;
    00064                 u16 _height;
    00065         };
    00066 }
    00067
    00068 #endif