summaryrefslogtreecommitdiffstats
path: root/src/image.h
blob: 426d6052d7f3ef6d5e7a015e957502348e684d71 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#ifndef VGLTF_IMAGE_H
#define VGLTF_IMAGE_H

#include <stdint.h>
#include "str.h"

enum vgltf_image_format {
  VGLTF_IMAGE_FORMAT_R8G8B8A8,
};

struct vgltf_image {
  unsigned char* data;
  uint32_t width;
  uint32_t height;
  enum vgltf_image_format format;
};

bool vgltf_image_load_from_file(struct vgltf_image* image, struct vgltf_string_view path);
void vgltf_image_deinit(struct vgltf_image* image);

#endif // VGLTF_IMAGE_H
Go back to lisible.xyz