After decimating the enemy forces that have attacked your ship, you are charged with taking out as many of the remaining enemy fighters as possible. 3d space fighter game was initially written while I was testing some 3d routines I was implementing for a flight simulator, but my daughter started playing it and seemed to enjoy it so I added a few sound effects, explosions etc. and so this little game was born.
LCD_ST7735/Bitmap4bpp.h@4:b857db213f10, 2015-02-08 (annotated)
- Committer:
- taylorza
- Date:
- Sun Feb 08 01:38:18 2015 +0000
- Revision:
- 4:b857db213f10
- Parent:
- 3:421ecc846d15
Removed duty lookup table
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
taylorza | 0:01829868570e | 1 | #ifndef __BITMAP4BPP_H__ |
taylorza | 0:01829868570e | 2 | #define __BITMAP4BPP_H__ |
taylorza | 0:01829868570e | 3 | |
taylorza | 0:01829868570e | 4 | class Bitmap4bpp |
taylorza | 0:01829868570e | 5 | { |
taylorza | 0:01829868570e | 6 | public: |
taylorza | 0:01829868570e | 7 | Bitmap4bpp(uint16_t width, uint16_t height); |
taylorza | 0:01829868570e | 8 | ~Bitmap4bpp(); |
taylorza | 0:01829868570e | 9 | |
taylorza | 0:01829868570e | 10 | inline uint16_t getWidth() { return _width; } |
taylorza | 3:421ecc846d15 | 11 | inline uint16_t getHeight() { return _height; } |
taylorza | 0:01829868570e | 12 | inline uint16_t getStride() { return _stride; } |
taylorza | 0:01829868570e | 13 | |
taylorza | 0:01829868570e | 14 | inline uint8_t *getBitmapData() { return _pBitmapData; } |
taylorza | 0:01829868570e | 15 | |
taylorza | 0:01829868570e | 16 | void clear(); |
taylorza | 0:01829868570e | 17 | private: |
taylorza | 0:01829868570e | 18 | uint16_t _width; |
taylorza | 0:01829868570e | 19 | uint16_t _height; |
taylorza | 0:01829868570e | 20 | uint16_t _stride; |
taylorza | 0:01829868570e | 21 | uint8_t *_pBitmapData; |
taylorza | 0:01829868570e | 22 | }; |
taylorza | 0:01829868570e | 23 | |
taylorza | 0:01829868570e | 24 | #endif //__BITMAP4BPP_H__ |