A implementation of a simple bomberman game
Dependencies: 4DGL-uLCD-SE SDFileSystem mbed-rtos mbed wave_player
Fork of rtos_basic by
myBMP.h
00001 // Code taken and hacked from EasyBMP library by Paul Macklin 00002 00003 #include "uLCD_4DGL.h" 00004 #include "SDFileSystem.h" 00005 00006 #define DefaultXPelsPerMeter 3780 00007 #define DefaultYPelsPerMeter 3780 00008 00009 typedef unsigned char ebmpBYTE; 00010 typedef unsigned short ebmpWORD; 00011 typedef unsigned int ebmpDWORD; 00012 00013 typedef struct RGBApixel { 00014 ebmpBYTE Blue; 00015 ebmpBYTE Green; 00016 ebmpBYTE Red; 00017 ebmpBYTE Alpha; 00018 } RGBApixel; 00019 00020 class BMFH{ 00021 public: 00022 ebmpWORD bfType; 00023 ebmpDWORD bfSize; 00024 ebmpWORD bfReserved1; 00025 ebmpWORD bfReserved2; 00026 ebmpDWORD bfOffBits; 00027 00028 BMFH(); 00029 }; 00030 00031 class BMIH{ 00032 public: 00033 ebmpDWORD biSize; 00034 ebmpDWORD biWidth; 00035 ebmpDWORD biHeight; 00036 ebmpWORD biPlanes; 00037 ebmpWORD biBitCount; 00038 ebmpDWORD biCompression; 00039 ebmpDWORD biSizeImage; 00040 ebmpDWORD biXPelsPerMeter; 00041 ebmpDWORD biYPelsPerMeter; 00042 ebmpDWORD biClrUsed; 00043 ebmpDWORD biClrImportant; 00044 00045 BMIH(); 00046 }; 00047 bool ReadBMPFromFile(int x, int y, const char* FileName , RGBApixel *Colors, uLCD_4DGL *lcd);
Generated on Thu Jul 14 2022 17:13:56 by 1.7.2