~ruther/CTU-FEE-B0B35APO-Semestral-project

ref: bf6fdbf6fa10f949bf9af21d5acadbbf4a167707 CTU-FEE-B0B35APO-Semestral-project/mzapo-sdl/include/image_load.h -rw-r--r-- 329 bytes
bf6fdbf6 — František Boháček chore: add sdl project directly 1 year, 10 months ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#ifndef __IMAGE_LOAD_H__
#define __IMAGE_LOAD_H__

#include <stdint.h>

typedef struct {
  uint8_t r;
  uint8_t g;
  uint8_t b;
} __attribute__((__packed__)) buffer_pixel_t;

typedef struct {
  uint32_t width;
  uint32_t height;
  buffer_pixel_t *data;
} image_t;

image_t image_load_png(char *path);

#endif // __IMAGE_LOAD_H__
Do not follow this link