PokittoLib is the library needed for programming the Pokitto DIY game console (www.pokitto.com)
Dependents: YATTT sd_map_test cPong SnowDemo ... more
defines_linux_SIM.h
00001 #include <stdio.h> 00002 #include <ctype.h> 00003 #include <stdlib.h> 00004 #include <string.h> 00005 #include <stdint.h> 00006 #include "helpers.h" 00007 00008 #define _MAX_DRIVE 3 00009 #define _MAX_DIR 256 00010 #define _MAX_FNAME 256 00011 #define _MAX_EXT 256 00012 00013 #include <ctype.h> 00014 00015 char* _strupr( char* s ) 00016 { 00017 char* p = s; 00018 while (*p){ *p = toupper( *p );p++;} 00019 return s; 00020 } 00021 00022 typedef struct tagRGBQUAD { 00023 uint8_t rgbBlue; 00024 uint8_t rgbGreen; 00025 uint8_t rgbRed; 00026 uint8_t rgbReserved; 00027 } RGBQUAD; 00028 00029 typedef struct tagBITMAPFILEHEADER { 00030 int16_t bfType; 00031 int32_t bfSize; 00032 int16_t bfReserved1; 00033 int16_t bfReserved2; 00034 int32_t bfOffBits; 00035 } __attribute__((packed)) BITMAPFILEHEADER, *PBITMAPFILEHEADER; 00036 00037 #define BI_RLE4 2 00038 typedef struct tagBITMAPINFOHEADER { 00039 int32_t biSize; 00040 int32_t biWidth; 00041 int32_t biHeight; 00042 int16_t biPlanes; 00043 int16_t biBitCount; 00044 int32_t biCompression; 00045 int32_t biSizeImage; 00046 int32_t biXPelsPerMeter; 00047 int32_t biYPelsPerMeter; 00048 int32_t biClrUsed; 00049 int32_t biClrImportant; 00050 } __attribute__((packed)) BITMAPINFOHEADER, *PBITMAPINFOHEADER; 00051 00052 typedef struct tagBITMAPINFO { 00053 BITMAPINFOHEADER bmiHeader; 00054 RGBQUAD bmiColors[1]; 00055 } __attribute__((packed)) BITMAPINFO, *PBITMAPINFO; 00056 00057 RGBQUAD myColors[257]; 00058 00059 00060
Generated on Tue Jul 12 2022 11:20:32 by 1.7.2