annotate 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 |
|
rev |
line source |
nuclear@7
|
1 #include <stdio.h>
|
nuclear@7
|
2 #include "assman.h"
|
nuclear@7
|
3
|
nuclear@7
|
4 ass_file *ass_fopen(const char *fname, const char *mode)
|
nuclear@7
|
5 {
|
nuclear@7
|
6 return (ass_file*)fopen(fname, mode);
|
nuclear@7
|
7 }
|
nuclear@7
|
8
|
nuclear@7
|
9 void ass_fclose(ass_file *fp)
|
nuclear@7
|
10 {
|
nuclear@7
|
11 fclose((FILE*)fp);
|
nuclear@7
|
12 }
|
nuclear@7
|
13
|
nuclear@7
|
14 long ass_fseek(ass_file *fp, long offs, int whence)
|
nuclear@7
|
15 {
|
nuclear@7
|
16 fseek((FILE*)fp, offs, whence);
|
nuclear@7
|
17 return ftell((FILE*)fp);
|
nuclear@7
|
18 }
|
nuclear@7
|
19
|
nuclear@7
|
20 long ass_ftell(ass_file *fp)
|
nuclear@7
|
21 {
|
nuclear@7
|
22 return ftell((FILE*)fp);
|
nuclear@7
|
23 }
|
nuclear@7
|
24
|
nuclear@7
|
25 size_t ass_fread(void *buf, size_t size, size_t count, ass_file *fp)
|
nuclear@7
|
26 {
|
nuclear@7
|
27 return fread(buf, size, count, (FILE*)fp);
|
nuclear@7
|
28 }
|