File: png_texture.h

package info (click to toggle)
gltron 0.61-3
  • links: PTS
  • area: main
  • in suites: woody
  • size: 3,948 kB
  • ctags: 1,175
  • sloc: ansic: 7,580; perl: 168; makefile: 149; sh: 15
file content (16 lines) | stat: -rw-r--r-- 366 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#ifndef PNG_TEXTURE_H
#define 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