3dphotoshoot

diff src/android/assman.c @ 21:4ca4e3c5a754

port to C++ completed, shader programs now use the SdrProg class
author John Tsiombikas <nuclear@member.fsf.org>
date Thu, 11 Jun 2015 04:56:33 +0300
parents aef7f51f6397
children
line diff
     1.1 --- a/src/android/assman.c	Thu Jun 11 02:53:43 2015 +0300
     1.2 +++ b/src/android/assman.c	Thu Jun 11 04:56:33 2015 +0300
     1.3 @@ -52,6 +52,11 @@
     1.4  	return AAsset_seek((AAsset*)fp, offs, whence);
     1.5  }
     1.6  
     1.7 +long ass_ftell(ass_file *fp)
     1.8 +{
     1.9 +	return AAsset_seek((AAsset*)fp, 0, SEEK_SET);
    1.10 +}
    1.11 +
    1.12  size_t ass_fread(void *buf, size_t size, size_t count, ass_file *fp)
    1.13  {
    1.14  	return AAsset_read((AAsset*)fp, buf, size * count) / size;