Files
SAE11_2025/src/images.h
T

25 lines
412 B
C
Raw Normal View History

2025-11-30 15:56:48 +01:00
#ifndef IMAGES_H
#define IMAGES_H
typedef struct {
char path[30];
int src_x, src_y;
int width, height;
2025-12-04 18:48:28 +01:00
int id;
2025-11-30 15:56:48 +01:00
} tile_t;
typedef struct {
int width;
int height;
char path[30];
} image_source_t;
image_source_t get_image_source(int selected_index);
tile_t **images_slice(image_source_t img_src, int rows, int cols);
void images_free_tiles(tile_t **tiles, int num_tiles);
2025-12-04 18:48:28 +01:00
#endif