20 lines
483 B
C
20 lines
483 B
C
#ifndef STBIDEF
|
|
#ifdef STB_IMAGE_WRITE_STATIC
|
|
#define STBIDEF static
|
|
#else
|
|
#ifdef __cplusplus
|
|
#define STBIDEF extern "C"
|
|
#else
|
|
#define STBIDEF extern
|
|
#endif
|
|
#endif
|
|
#endif
|
|
|
|
typedef unsigned char stbi_uc;
|
|
|
|
STBIDEF int stbi_write_png(char const *filename, int w, int h, int comp, const void *data, int stride_in_bytes);
|
|
|
|
STBIDEF stbi_uc *stbi_load(char const *filename, int *x, int *y, int *comp, int req_comp);
|
|
|
|
STBIDEF void stbi_image_free (void *retval_from_stbi_load);
|