MCPcopy Create free account
hub / github.com/cinder/Cinder / loadFile

Function loadFile

src/cinder/DataSource.cpp:123–137  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

121
122
123DataSourceRef loadFile( const fs::path &path )
124{
125#if defined( CINDER_ANDROID )
126 if( ci::app::PlatformAndroid::isAssetPath( path ) ) {
127 DataSourceRef result = DataSourceAndroidAsset::create( path );
128 return result;
129 }
130 else {
131 DataSourceRef result = DataSourcePath::create( path );
132 return result;
133 }
134#else
135 return DataSourcePath::create( path );
136#endif
137}
138
139
140/////////////////////////////////////////////////////////////////////////////

Callers 15

setupMethod · 0.85
keyDownMethod · 0.85
initDataMethod · 0.85
loadMethod · 0.85
loadMethod · 0.85
fileDropMethod · 0.85
fileDropMethod · 0.85
testObjFileWriteReadMethod · 0.85
Utilities.cppFile · 0.85
setupMethod · 0.85

Calls 1

createFunction · 0.50

Tested by 7

testObjFileWriteReadMethod · 0.68
setupMethod · 0.68
drawMethod · 0.68
openFileMethod · 0.68
openFileMethod · 0.68
openFileMethod · 0.68
setupMethod · 0.68