A implementation of a simple bomberman game
Dependencies: 4DGL-uLCD-SE SDFileSystem mbed-rtos mbed wave_player
Fork of rtos_basic by
Diff: myBMP/myBMP.h
- Revision:
- 7:12f7fd2b1a13
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/myBMP/myBMP.h Mon Oct 31 19:33:11 2016 +0000 @@ -0,0 +1,47 @@ +// Code taken and hacked from EasyBMP library by Paul Macklin + +#include "uLCD_4DGL.h" +#include "SDFileSystem.h" + +#define DefaultXPelsPerMeter 3780 +#define DefaultYPelsPerMeter 3780 + +typedef unsigned char ebmpBYTE; +typedef unsigned short ebmpWORD; +typedef unsigned int ebmpDWORD; + +typedef struct RGBApixel { + ebmpBYTE Blue; + ebmpBYTE Green; + ebmpBYTE Red; + ebmpBYTE Alpha; +} RGBApixel; + +class BMFH{ +public: + ebmpWORD bfType; + ebmpDWORD bfSize; + ebmpWORD bfReserved1; + ebmpWORD bfReserved2; + ebmpDWORD bfOffBits; + + BMFH(); +}; + +class BMIH{ +public: + ebmpDWORD biSize; + ebmpDWORD biWidth; + ebmpDWORD biHeight; + ebmpWORD biPlanes; + ebmpWORD biBitCount; + ebmpDWORD biCompression; + ebmpDWORD biSizeImage; + ebmpDWORD biXPelsPerMeter; + ebmpDWORD biYPelsPerMeter; + ebmpDWORD biClrUsed; + ebmpDWORD biClrImportant; + + BMIH(); +}; +bool ReadBMPFromFile(int x, int y, const char* FileName , RGBApixel *Colors, uLCD_4DGL *lcd);