auto tmp = u::buffer<32>();
- sprintf( tmp, "%f", normal.x() );
+ tmp.sprintf( "%f", normal.x() );
element.insertAttribute( "nx", tmp );
- sprintf( tmp, "%f", normal.y() );
+ tmp.sprintf( "%f", normal.y() );
element.insertAttribute( "ny", tmp );
- sprintf( tmp, "%f", normal.z() );
+ tmp.sprintf( "%f", normal.z() );
element.insertAttribute( "nz", tmp );
importer.pushElement( element );
{
DynamicElement c( "vertex" );
- sprintf( tmp, "%f", w.points[i].vertex.x() );
+ tmp.sprintf( "%f", w.points[i].vertex.x() );
c.insertAttribute( "x", tmp );
- sprintf( tmp, "%f", w.points[i].vertex.y() );
+ tmp.sprintf( "%f", w.points[i].vertex.y() );
c.insertAttribute( "y", tmp );
- sprintf( tmp, "%f", w.points[i].vertex.z() );
+ tmp.sprintf( "%f", w.points[i].vertex.z() );
c.insertAttribute( "z", tmp );
- sprintf( tmp, "%f", w.points[i].texcoord.x() );
+ tmp.sprintf( "%f", w.points[i].texcoord.x() );
c.insertAttribute( "s", tmp );
- sprintf( tmp, "%f", w.points[i].texcoord.y() );
+ tmp.sprintf( "%f", w.points[i].texcoord.y() );
c.insertAttribute( "t", tmp );
importer.pushElement( c );