6#ifndef __LIBDRAGON_ASSET_H
7#define __LIBDRAGON_ASSET_H
79extern void __asset_init_compression_lvl2(
void);
80extern void __asset_init_compression_lvl3(
void);
105#define asset_init_compression(level) ({ \
108 case 2: __asset_init_compression_lvl2(); break; \
109 case 3: __asset_init_compression_lvl3(); break; \
110 default: assertf(0, "Unsupported compression level: %d", level); \
void * asset_load(const char *fn, int *sz)
Load an asset file (possibly uncompressing it)
Definition asset.c:157
FILE * asset_fopen(const char *fn, int *sz)
Open an asset file for reading (with transparent decompression)