
#ifndef SPECTRE_GRAPHICS_IMAGE_FORMAT_ICO_H
#define SPECTRE_GRAPHICS_IMAGE_FORMAT_ICO_H

#include <cstdint>

typedef struct _ICONDIRENTRY {
	uint8_t  width;			// width, in pixels.
	uint8_t  height;		// height, in pixels
	uint8_t  num_colors;	// Number of colors (0 if >= 8bpp)
	uint16_t color_planes;	// Color planes
	uint16_t bpp;			// Bits per pixel
	uint32_t size;			// size of the image, in bytes.
	uint32_t offset;		// offset from the start of ICO
} ICONDIRENTRY;

#define ICONDIRENTRY_SIZE 16 /* Size as stored on disk (no padding) */

#endif /* SPECTRE_GRAPHICS_IMAGE_FORMAT_ICO_H */
