Assxml exporter: Make some local functions static.

pull/859/head
Kim Kulling 2016-04-19 08:48:37 +02:00
parent 1b94b8969f
commit 22dc22778d
1 changed files with 6 additions and 4 deletions

View File

@ -178,7 +178,8 @@ static std::string encodeXML(const std::string& data) {
// ----------------------------------------------------------------------------------- // -----------------------------------------------------------------------------------
// Write a text model dump // Write a text model dump
static void WriteDump(const aiScene* scene, IOStream* io, bool shortened) { static
void WriteDump(const aiScene* scene, IOStream* io, bool shortened) {
time_t tt = ::time( NULL ); time_t tt = ::time( NULL );
tm* p = ::gmtime( &tt ); tm* p = ::gmtime( &tt );
ai_assert( nullptr != p ); ai_assert( nullptr != p );
@ -305,12 +306,13 @@ static void WriteDump(const aiScene* scene, IOStream* io, bool shortened) {
unsigned int r = tx->r,g=tx->g,b=tx->b,a=tx->a; unsigned int r = tx->r,g=tx->g,b=tx->b,a=tx->a;
ioprintf(io,"\t\t\t%2x %2x %2x %2x",r,g,b,a); ioprintf(io,"\t\t\t%2x %2x %2x %2x",r,g,b,a);
// group by four for readibility // group by four for readability
if (0 == (x+y*tex->mWidth) % 4) if ( 0 == ( x + y*tex->mWidth ) % 4 ) {
ioprintf( io, "\n" ); ioprintf( io, "\n" );
} }
} }
} }
}
ioprintf(io,"\t\t</Data>\n\t</Texture>\n"); ioprintf(io,"\t\t</Data>\n\t</Texture>\n");
} }
ioprintf(io,"</TextureList>\n"); ioprintf(io,"</TextureList>\n");