1
0
Fork 0

Adding source/Graphics/Image/Format/ico.h

This commit is contained in:
Henrik Hautakoski 2020-10-22 17:07:06 +02:00
parent 02912b857b
commit b78531a570

View file

@ -0,0 +1,19 @@
#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 */