istereo2

diff src/assman.h @ 7:a3c4fcc9f8f3

- started a goatkit UI theme - font rendering with drawtext and shaders - asset manager (only used by drawtext for now, will replace respath eventually)
author John Tsiombikas <nuclear@member.fsf.org>
date Thu, 24 Sep 2015 06:49:25 +0300
parents
children
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/src/assman.h	Thu Sep 24 06:49:25 2015 +0300
     1.3 @@ -0,0 +1,27 @@
     1.4 +#ifndef ASSMAN_H_
     1.5 +#define ASSMAN_H_
     1.6 +
     1.7 +#include <stdlib.h>
     1.8 +
     1.9 +typedef void ass_file;
    1.10 +
    1.11 +#ifdef __cplusplus
    1.12 +extern "C" {
    1.13 +#endif
    1.14 +
    1.15 +ass_file *ass_fopen(const char *fname, const char *mode);
    1.16 +void ass_fclose(ass_file *fp);
    1.17 +long ass_fseek(ass_file *fp, long offs, int whence);
    1.18 +long ass_ftell(ass_file *fp);
    1.19 +
    1.20 +size_t ass_fread(void *buf, size_t size, size_t count, ass_file *fp);
    1.21 +
    1.22 +/* convenience functions, derived from the above */
    1.23 +int ass_fgetc(ass_file *fp);
    1.24 +char *ass_fgets(char *s, int size, ass_file *fp);
    1.25 +
    1.26 +#ifdef __cplusplus
    1.27 +}
    1.28 +#endif
    1.29 +
    1.30 +#endif	/* ASSMAN_H_ */