17 lines
634 B
C
17 lines
634 B
C
#pragma once
|
|
#include <citro2d.h>
|
|
#include <stdbool.h>
|
|
|
|
// Vorschaubilder (Screenshots, Banner) für die Shop-Seiten. Der Server liefert sie als fertige
|
|
// 3DS-Textur (512x256 RGB565, sichtbar 400x240), geladen wird im Hintergrund.
|
|
#define PIC_BANNER -1
|
|
|
|
typedef enum { PIC_LOADING, PIC_READY, PIC_MISSING } PicState;
|
|
|
|
void pics_init(void);
|
|
void pics_exit(void);
|
|
// Jedes Bild einmal pro Bild aufrufen: holt fertige Downloads in den Grafikspeicher
|
|
void pics_poll(void);
|
|
// Bild für eine App (which = Screenshot-Nummer oder PIC_BANNER). Startet bei Bedarf den Download.
|
|
PicState pics_get(const char *slug, int which, C2D_Image *out);
|