blob: 3bcbb9d24eda3e13b2892c9a041836fa898cea6b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
#ifndef NEBU_PNG_TEXTURE_H
#define NEBU_PNG_TEXTURE_H
typedef struct {
int width;
int height;
int channels;
unsigned char *data;
} png_texture;
extern png_texture* load_png_texture(char *filename);
extern void unload_png_texture(png_texture *tex);
extern png_texture* mipmap_png_texture(png_texture *source, int level,
int clamp_u, int clamp_v);
#endif
|