home *** CD-ROM | disk | FTP | other *** search
- #ifndef PICTUREFORMAT_H
- #define PICTUREFORMAT_H
-
- class Color;
-
- class PictureFormat
- {
- public:
- PictureFormat()
- {}
- virtual ~PictureFormat()
- {}
- virtual int width()const =0;
- virtual int height()const =0;
- virtual int alpha_bits()const =0;
- virtual const Color * colors()const =0;
-
- int get_shift(int x, int y )const
- {
- return x + y * width();
- }
- };
-
- #endif //PICTUREFORMAT_H