dos-vga-arena-shooter-game/bmp_loader.h

24 lines
414 B
C

#include <stdio.h>
#include "types.h"
struct BMPColor {
byte blue;
byte green;
byte red;
byte _a;
};
struct BMPImage {
int width;
int height;
word bpp;
struct BMPColor colors[256];
byte *memoryStart;
};
int readBMPIntoUnchainedMemory(FILE *, struct BMPImage *);
int readBMPIntoMemory(FILE *, struct BMPImage *);
void bmp256ColorPaletteToVGAColorPalette(struct BMPImage*, struct VGAColor[]);