pbsplash/include/pbsplash.h

41 lines
674 B
C
Raw Normal View History

2022-03-10 17:21:50 -09:00
#ifndef __pbsplash_h__
#define __pbsplash_h__
#define MM_TO_PX(dpi, mm) (dpi / 25.4) * (mm)
2022-03-10 17:21:50 -09:00
struct col {
union {
unsigned int rgba;
struct {
unsigned char r, g, b, a;
};
};
};
2023-06-07 09:55:07 -08:00
struct dpi_info {
long dpi;
int pixels_per_milli;
float logo_size_px;
int logo_size_max_mm;
};
typedef struct NSVGimage NSVGimage;
#define MAX_FRAMES 16
struct image_info {
char *path[MAX_FRAMES];
NSVGimage *image[MAX_FRAMES];
int num_frames;
float width;
float height;
float x;
float y;
};
void draw_svg(NSVGimage *image, int x, int y, int w, int h);
void animate_frame(int frame, int w, int y_off, long dpi, struct image_info *images);
2022-03-10 17:21:50 -09:00
2022-07-04 07:40:17 -08:00
#endif