MCPcopy Create free account
hub / github.com/carbonengine/trinity / SaveAsync

Method SaveAsync

trinity/Resources/TriTextureRes.cpp:499–514  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

497}
498
499bool TriTextureRes::SaveAsync( const wchar_t* filename )
500{
501 // Only permit saving of 2d and cube textures
502 if( m_type == TEX_TYPE_INVALID )
503 {
504 CCP_LOGERR( "Texture save failed - texture is invalid" );
505 return false;
506 }
507 else if( m_type != TEX_TYPE_2D && m_type != TEX_TYPE_CUBE )
508 {
509 CCP_LOGERR( "Texture save failed - only 2d and cubemap textures can be saved" );
510 return false;
511 }
512
513 return StartAsyncSave( filename );
514}
515
516bool TriTextureRes::DoPrepareAsyncSave( void )
517{

Callers 1

PythonSaveFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected