istereo2
diff src/ios/assman.c @ 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/ios/assman.c Thu Sep 24 06:49:25 2015 +0300 1.3 @@ -0,0 +1,28 @@ 1.4 +#include <stdio.h> 1.5 +#include "assman.h" 1.6 + 1.7 +ass_file *ass_fopen(const char *fname, const char *mode) 1.8 +{ 1.9 + return (ass_file*)fopen(fname, mode); 1.10 +} 1.11 + 1.12 +void ass_fclose(ass_file *fp) 1.13 +{ 1.14 + fclose((FILE*)fp); 1.15 +} 1.16 + 1.17 +long ass_fseek(ass_file *fp, long offs, int whence) 1.18 +{ 1.19 + fseek((FILE*)fp, offs, whence); 1.20 + return ftell((FILE*)fp); 1.21 +} 1.22 + 1.23 +long ass_ftell(ass_file *fp) 1.24 +{ 1.25 + return ftell((FILE*)fp); 1.26 +} 1.27 + 1.28 +size_t ass_fread(void *buf, size_t size, size_t count, ass_file *fp) 1.29 +{ 1.30 + return fread(buf, size, count, (FILE*)fp); 1.31 +}