| 766 | |
| 767 | #if defined( CINDER_ANDROID ) |
| 768 | IStreamAndroidAssetRef loadAndroidAssetStream( const fs::path &path ) |
| 769 | { |
| 770 | AAsset *f = ci::app::android::AssetFileSystem_fopen( path.string().c_str(), "rb" ); |
| 771 | |
| 772 | if( f ) { |
| 773 | IStreamAndroidAssetRef s = IStreamAndroidAsset::create( f, true ); |
| 774 | s->setFileName( path ); |
| 775 | return s; |
| 776 | } |
| 777 | else |
| 778 | return IStreamAndroidAssetRef(); |
| 779 | } |
| 780 | #endif // defined( CINDER_ANDROID ) |
| 781 | |
| 782 | StreamExc::StreamExc( const std::string &fontName ) throw() |
no test coverage detected