Source

watches / lunar / resources.h

Full commit
#ifndef _resources_h_
#define _resources_h_

/** \file
 * Access to the inpulse_resources.bin files.
 */
#include <stdint.h>


typedef struct
{
	uint8_t type; // 00 == NULL, 01 == image, 02 == font
	uint32_t offset; // in big endian.
	uint8_t height;
	uint8_t width;
	uint8_t unknown2; // always 0?
} __attribute__((__packed__))
image_resource_t;


// Image pixels are stored in 24-bit form
typedef struct
{
	uint8_t red;
	uint8_t blue;
	uint8_t green;
} __attribute__((__packed__))
image_pixel_t;

#endif